From f10d3ae94f56c44f4a93fd30e05b5af7bca054d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Sun, 6 Mar 2016 13:45:53 +0100 Subject: [PATCH] Updated deploy script for django 1.9 --- fabfile.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/fabfile.py b/fabfile.py index 1246e79..288fd4d 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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)