Skip to content

Commit

Permalink
Simplify more
Browse files Browse the repository at this point in the history
  • Loading branch information
fasouto committed Oct 25, 2016
1 parent 3479050 commit 44f4e6c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,10 @@ def run_migrations(app=None):
"""
with virtualenv(env.virtualenv):
with cd(env.code_dir):
if getattr(env, 'initial_deploy', False):
run_venv("./manage.py syncdb --all")
run_venv("./manage.py migrate --fake --noinput")
if app:
run_venv("./manage.py migrate %s --noinput" % app)
else:
run_venv("./manage.py syncdb --noinput")
if app:
run_venv("./manage.py migrate %s --noinput" % app)
else:
run_venv("./manage.py migrate --noinput")
run_venv("./manage.py migrate --noinput")


@task
Expand Down

0 comments on commit 44f4e6c

Please sign in to comment.