Skip to content

Commit

Permalink
Fixing ft_celeryd_restart management command to use the virtualenv.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Taylor committed May 25, 2011
1 parent 27c69c1 commit f7ecd99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabtastic/fabric/commands/c_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ def celeryd_restart(roles='webapp_servers'):
if _current_host_has_role(roles):
print("=== RESTARTING CELERY DAEMON ===")
with cd(env.REMOTE_CODEBASE_PATH):
run("./manage.py ft_celeryd_restart")
run("workon %s && ./manage.py ft_celeryd_restart" % env.REMOTE_VIRTUALENV_NAME)
print "Celery shutdown broadcasted, workers restarting."

0 comments on commit f7ecd99

Please sign in to comment.