From e69ac4c5b9f899c0afc381f59dc0339166bf1fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 8 Jun 2017 11:55:52 +0200 Subject: [PATCH] Restart Celery worker after deploying new version. --- deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy.sh b/deploy.sh index 657cc09..078fb8c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -23,6 +23,7 @@ read dummy # Deploys the current production branch to the production machine. PROJECT_NAME="blender-cloud" DOCKER_NAME="blender_cloud" +CELERY_WORKER_DOCKER_NAME="celery_worker" REMOTE_ROOT="/data/git/${PROJECT_NAME}" SSH="ssh -o ClearAllForwardings=yes ${DEPLOYHOST}" @@ -134,6 +135,13 @@ echo "Gracefully restarting server process" ${SSH} docker exec ${DOCKER_NAME} apache2ctl graceful echo "Server process restarted" +echo +echo "===================================================================" +echo "Restarting Celery worker." +${SSH} docker restart ${CELERY_WORKER_DOCKER_NAME} +echo "Celery worker docker restarted" + + echo echo "===================================================================" echo "Clearing front page from Redis cache."