mirror of https://github.com/zulip/zulip.git
Restart runtornado on deploy, as well
We need this for client auto-reload on static file changes, because the server generation comes from get_updates. (imported from commit c5e97421883383c12891fdcb177d0f6fda4b4857)
This commit is contained in:
parent
2fe034d161
commit
f109d23bba
|
@ -37,10 +37,11 @@ subprocess.check_call(["git", "reset", "--hard", "origin/master"], stdout=open('
|
||||||
|
|
||||||
# Restart the FastCGI process, which is running in a shell loop in screen.
|
# Restart the FastCGI process, which is running in a shell loop in screen.
|
||||||
# TODO: real daemonization
|
# TODO: real daemonization
|
||||||
try:
|
for cmd in ('runfcgi', 'runtornado'):
|
||||||
subprocess.check_call(["pkill", "-f", "python manage.py runfcgi"])
|
try:
|
||||||
except CalledProcessError:
|
subprocess.check_call(["pkill", "-f", "python manage.py " + cmd])
|
||||||
print WARNING + "Could not kill runfcgi; is it running?" + ENDC
|
except CalledProcessError:
|
||||||
|
print "%sCould not kill %s; is it running?%s" % (WARNING, cmd, ENDC)
|
||||||
|
|
||||||
print OKGREEN + "Updated deployed version of humbug application!" + ENDC
|
print OKGREEN + "Updated deployed version of humbug application!" + ENDC
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue