Commit 7f7bf0ef525c6b2eec80d7435218b7609e905b0e

Authored by Sergio Oliveira
1 parent b103e7cb

Fixing fabric

pull should run before pip install
Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
@@ -60,11 +60,13 @@ def update_requirements(): @@ -60,11 +60,13 @@ def update_requirements():
60 60
61 61
62 def deploy(update=False): 62 def deploy(update=False):
63 - if update:  
64 - update_requirements()  
65 63
66 with cd('~/colab/src/'), prefix(WORKON_COLAB): 64 with cd('~/colab/src/'), prefix(WORKON_COLAB):
67 run('git pull') 65 run('git pull')
  66 +
  67 + if update:
  68 + update_requirements()
  69 +
68 run('python manage.py syncdb') 70 run('python manage.py syncdb')
69 run('python manage.py migrate') 71 run('python manage.py migrate')
70 run('python manage.py collectstatic --noinput') 72 run('python manage.py collectstatic --noinput')