Fixed fabfile for restarts

This commit is contained in:
2011-01-26 09:36:36 +00:00
parent 23174db3b3
commit cd43dc01db

3
fabfile.py vendored
View File

@@ -169,7 +169,7 @@ def start_celeryd():
require('path')
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():
@@ -179,6 +179,7 @@ def stop_celeryd():
require('hosts')
require('path')
with cd('%(path)s/dreddit-auth/' % env):
if exists('logs/celeryd.pid'):
run('kill `cat logs/celeryd.pid`')
else: