diff --git a/scripts/celery_worker-ecs.sh b/scripts/celery_worker-ecs.sh index 8246b94fcd..619f7a9f13 100755 --- a/scripts/celery_worker-ecs.sh +++ b/scripts/celery_worker-ecs.sh @@ -5,5 +5,6 @@ if [ -z "${DATABASE_URL}" ]; then export DATABASE_URL="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}" fi +python manage.py collectstatic --noinput python manage.py compilemessages celery --app=config.celery_app worker --max-tasks-per-child=6 --loglevel=info diff --git a/scripts/celery_worker.sh b/scripts/celery_worker.sh index 1ff305edb3..a7f0a887d6 100755 --- a/scripts/celery_worker.sh +++ b/scripts/celery_worker.sh @@ -7,5 +7,6 @@ fi export NEW_RELIC_CONFIG_FILE=/etc/newrelic.ini +python manage.py collectstatic --noinput python manage.py compilemessages newrelic-admin run-program celery --app=config.celery_app worker --max-tasks-per-child=6 --loglevel=info