mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fixed fabfile for restarts
This commit is contained in:
3
fabfile.py
vendored
3
fabfile.py
vendored
@@ -169,7 +169,7 @@ def start_celeryd():
|
|||||||
require('path')
|
require('path')
|
||||||
|
|
||||||
with cd('%(path)s/dreddit-auth/' % env):
|
with cd('%(path)s/dreddit-auth/' % env):
|
||||||
run('./manage.py celeryd_detach -l INFO -B --pidfile logs/celery.pd -f logs/celeryd.log -n auth-processor' % env)
|
run('. env/bin/activate; ./manage.py celeryd_detach -l INFO -B --pidfile logs/celery.pd -f logs/celeryd.log -n auth-processor' % env)
|
||||||
|
|
||||||
|
|
||||||
def stop_celeryd():
|
def stop_celeryd():
|
||||||
@@ -179,6 +179,7 @@ def stop_celeryd():
|
|||||||
require('hosts')
|
require('hosts')
|
||||||
require('path')
|
require('path')
|
||||||
|
|
||||||
|
with cd('%(path)s/dreddit-auth/' % env):
|
||||||
if exists('logs/celeryd.pid'):
|
if exists('logs/celeryd.pid'):
|
||||||
run('kill `cat logs/celeryd.pid`')
|
run('kill `cat logs/celeryd.pid`')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user