Updated deploy script for django 1.9

This commit is contained in:
Felipe Martín 2016-03-06 13:45:53 +01:00
parent 7d84ef1a7e
commit f10d3ae94f
1 changed files with 2 additions and 6 deletions

8
fabfile.py vendored
View File

@ -8,7 +8,7 @@ from fabric.api import *
from fabric.context_managers import settings, hide
from fabric.decorators import with_settings
from fabric.contrib.files import exists
from fabric.colors import yellow, red, white, green
from fabric.colors import yellow, red, white, green, blue # blue is used
#
@ -230,11 +230,7 @@ def deploy():
with cd(release_dir):
with prefix('source {}/virtualenv/bin/activate'.format(release_dir)):
with prefix('export APP_CONFIGFILE="{}"'.format(app_configfile)):
cmd = 'python code/manage.py syncdb {}'.format(managepy_affix)
subheader(cmd)
run(cmd)
cmd = 'python code/manage.py migrate {} --no-initial-data'\
cmd = 'python code/manage.py migrate {} --no-input'\
.format(managepy_affix)
subheader(cmd)
run(cmd)