Restart Celery worker after deploying new version.

This commit is contained in:
2017-06-08 11:55:52 +02:00
parent a62d1e3d7d
commit e69ac4c5b9

View File

@@ -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."