projects
/
qcg-portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix saving template from job submission form
[qcg-portal.git]
/
fabfile.py
diff --git
a/fabfile.py
b/fabfile.py
index
1605a4a
..
439152f
100644
(file)
--- a/
fabfile.py
+++ b/
fabfile.py
@@
-49,15
+49,15
@@
def git_status():
@task
@task
-def deploy(load_ex_data=False):
+def deploy():
with cd('qcg-portal'):
run("git pull")
run("pip install -r requirements.txt")
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")
run("python manage.py collectstatic --noinput")
- if is_running:
- run("uwsgi --reload " + PID_FILE)
+ if is_running():
+ restart()
else:
else:
- run("uwsgi --ini uwsgi.ini")
\ No newline at end of file
+ print '!!! SERVER NOT RUNNING !!!'