From cd43dc01db52f74b0614d57e92efdefbe73c6db3 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 26 Jan 2011 09:36:36 +0000 Subject: [PATCH] Fixed fabfile for restarts --- fabfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fabfile.py b/fabfile.py index 865a0a8..a932393 100644 --- a/fabfile.py +++ b/fabfile.py @@ -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: