diff --git a/scripts/update/fabfile.py b/scripts/update/fabfile.py index d767abed89..d14795f96c 100644 --- a/scripts/update/fabfile.py +++ b/scripts/update/fabfile.py @@ -192,16 +192,8 @@ def install_cron(): @roles(settings.WEB_HOSTGROUP) @task def restart_workers(): - if getattr(settings, 'GUNICORN', False): - for gservice in settings.GUNICORN: - run("/sbin/service %s graceful" % gservice) - else: - run("/bin/touch %s/wsgi/zamboni.wsgi" % settings.REMOTE_APP) - run("/bin/touch %s/wsgi/mkt.wsgi" % settings.REMOTE_APP) - run("/bin/touch %s/services/wsgi/verify.wsgi" % - settings.REMOTE_APP) - run("/bin/touch %s/services/wsgi/application.wsgi" % - settings.REMOTE_APP) + for gservice in settings.GUNICORN: + run("/sbin/service %s graceful" % gservice) @roles(settings.CELERY_HOSTGROUP) diff --git a/scripts/update/update.py b/scripts/update/update.py index c2117a3e4b..2063544a26 100644 --- a/scripts/update/update.py +++ b/scripts/update/update.py @@ -154,16 +154,8 @@ def sync_code(ctx): @hostgroups(settings.WEB_HOSTGROUP, remote_kwargs={'ssh_key': settings.SSH_KEY}) def restart_workers(ctx): - if getattr(settings, 'GUNICORN', False): - for gservice in settings.GUNICORN: - ctx.remote("/sbin/service %s graceful" % gservice) - else: - ctx.remote("/bin/touch %s/wsgi/zamboni.wsgi" % settings.REMOTE_APP) - ctx.remote("/bin/touch %s/wsgi/mkt.wsgi" % settings.REMOTE_APP) - ctx.remote("/bin/touch %s/services/wsgi/verify.wsgi" % - settings.REMOTE_APP) - ctx.remote("/bin/touch %s/services/wsgi/application.wsgi" % - settings.REMOTE_APP) + for gservice in settings.GUNICORN: + ctx.remote("/sbin/service %s graceful" % gservice) @task