Skip to content

Commit

Permalink
fix worker
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Jan 2, 2025
1 parent 1d4505e commit f25df2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
export UWSGI_PROCESSES="${UWSGI_PROCESSES:-"4"}"
export DJANGO_SETTINGS_MODULE="hope_payment_gateway.config.settings"

chown -R hope:unicef /app

case "$1" in
run)
django-admin upgrade --with-check
Expand All @@ -30,7 +32,7 @@ case "$1" in
;;
worker)
set -- tini -- "$@"
set -- gosu hope:unicef celery -A hope_payment_gateway.config.celery worker --statedb /app/worker --concurrency=4 -E --loglevel=ERROR
set -- gosu hope:unicef celery -A hope_payment_gateway.config.celery worker --statedb /app/worker --concurrency=4 -E --loglevel=ERROR
;;
beat)
set -- tini -- "$@"
Expand Down

0 comments on commit f25df2b

Please sign in to comment.