Skip to content

Commit

Permalink
Remove unnecesary complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
fasouto committed Oct 25, 2016
1 parent e8922d4 commit 188a797
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Basic fabfile for django projects
"""
import posixpath
import os

from fabric.api import run, local, env, settings, cd, task
from fabric.contrib.files import exists
Expand Down Expand Up @@ -105,15 +104,15 @@ def webserver_stop():
"""
Stop the webserver that is running the Django instance
"""
sudo("service apache2 stop")
sudo("service gunicorn stop")


@task
def webserver_start():
"""
Starts the webserver that is running the Django instance
"""
sudo("service apache2 start")
sudo("service gunicorn start")


@task
Expand Down Expand Up @@ -145,14 +144,6 @@ def collectstatic():
run("chmod -R ugo+r %s" % env.static_root)


@task
def first_deployment_mode():
"""
Use before first deployment to switch on fake migrations.
"""
env.initial_deploy = True


@task
def run_migrations(app=None):
"""
Expand Down

0 comments on commit 188a797

Please sign in to comment.