migrate all apps in deploy
authorMaciej Tronowski <mtro@man.poznan.pl>
Fri, 6 Mar 2015 14:21:29 +0000 (15:21 +0100)
committerMaciej Tronowski <mtro@man.poznan.pl>
Fri, 6 Mar 2015 14:21:29 +0000 (15:21 +0100)
fabfile.py

index 1605a4a..439152f 100644 (file)
@@ -49,15 +49,15 @@ def git_status():
 
 
 @task
-def deploy(load_ex_data=False):
+def deploy():
     with cd('qcg-portal'):
         run("git pull")
 
         run("pip install -r requirements.txt")
-        run("python manage.py migrate qcg")
+        run("python manage.py migrate")
         run("python manage.py collectstatic --noinput")
 
-        if is_running:
-            run("uwsgi --reload " + PID_FILE)
+        if is_running():
+            restart()
         else:
-            run("uwsgi --ini uwsgi.ini")
\ No newline at end of file
+            print '!!! SERVER NOT RUNNING !!!'