Permalink
Browse files

Merge pull request #12 from jasonthomas/celery

fix update_celery
  • Loading branch information...
2 parents 123ecb8 + d989bf7 commit 7fcfca8862322d693bee20dcdfb18929566dd460 @andymckay andymckay committed Dec 18, 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 7fcfca8

Please sign in to comment.