Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix update_celery #12

Merged
merged 1 commit into from

2 participants

@jasonthomas
Owner

No description provided.

@andymckay
Owner

this just moves code around? i can't spot any other difference

I removed the task decorator. I added it by accident and it causes the task to fail.

ah, thanks

@andymckay andymckay merged commit 7fcfca8 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2012
  1. @jasonthomas

    fix update_celery

    jasonthomas authored
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 8 deletions.
  1. +7 −8 scripts/update/update.py
View
15 scripts/update/update.py
@@ -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()
Something went wrong with that request. Please try again.