From 9d80fd7a5d7a99d2c53a23756d24b76aebe1fee7 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Sun, 25 Aug 2024 18:14:10 +0530 Subject: [PATCH] fix pdf report generation in prod --- scripts/celery_worker-ecs.sh | 1 + scripts/celery_worker.sh | 1 + 2 files changed, 2 insertions(+) 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