Updated deploy script for django 1.9
This commit is contained in:
parent
7d84ef1a7e
commit
f10d3ae94f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue