Permalink
Browse files

fix update_celery

  • Loading branch information...
1 parent 063fad1 commit d989bf74e44f11aa66481ce942b7a8334a6e5b77 @jasonthomas jasonthomas committed Dec 13, 2012
Showing with 7 additions and 8 deletions.
  1. +7 −8 scripts/update/update.py
View
@@ -43,14 +43,6 @@ def update_code(ctx, ref='origin/master'):
@task
-@hostgroups(settings.CELERY_HOSTGROUP, remote_kwargs={'ssh_key': settings.SSH_KEY})
-def update_celery(ctx):
- ctx.remote(settings.REMOTE_UPDATE_SCRIPT)
- if getattr(settings, 'CELERY_SERVICE', False):
- ctx.remote("/sbin/service %s restart" % settings.CELERY_SERVICE)
-
-
-@task
def compress_assets(ctx, arg=''):
with ctx.lcd(settings.SRC_DIR):
ctx.local("%s manage.py compress_assets %s" % (settings.PYTHON, arg))
@@ -82,6 +74,13 @@ def deploy_app(ctx):
else:
ctx.remote("/bin/touch %s/wsgi/playdoh.wsgi" % settings.REMOTE_APP)
+
+@hostgroups(settings.CELERY_HOSTGROUP, remote_kwargs={'ssh_key': settings.SSH_KEY})
+def update_celery(ctx):
+ ctx.remote(settings.REMOTE_UPDATE_SCRIPT)
+ if getattr(settings, 'CELERY_SERVICE', False):
+ ctx.remote("/sbin/service %s restart" % settings.CELERY_SERVICE)
+
@task
def deploy(ctx):
checkin_changes()

0 comments on commit d989bf7

Please sign in to comment.