Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ echo "Startup command is: '$1'"

case "$1" in
"run")
django-admin upgrade
gosu hope:unicef django-admin upgrade
Comment thread
srugano marked this conversation as resolved.

exec uwsgi --ini /conf/uwsgi.ini
exec gosu hope:unicef uwsgi --ini /conf/uwsgi.ini

;;
"dev")
django-admin collectstatic --no-input
django-admin migrate
django-admin runserver 0.0.0.0:8000
gosu hope:unicef django-admin collectstatic --no-input
gosu hope:unicef django-admin migrate
gosu hope:unicef django-admin runserver 0.0.0.0:8000
;;
"setup")
django-admin upgrade
gosu hope:unicef django-admin upgrade
;;
"worker")
exec tini -- gosu hope:unicef celery -A hope_live.config worker --concurrency=4 -E -l "${CELERY_LOGLEVEL:-INFO}"
exec gosu hope:unicef celery -A hope_live.config worker --concurrency=4 -E -l "${CELERY_LOGLEVEL:-INFO}"
;;
"beat")
exec tini -- gosu hope:unicef celery -A hope_live.config beat --scheduler django_celery_beat.schedulers:DatabaseScheduler -l "${CELERY_LOGLEVEL:-INFO}"
exec gosu hope:unicef celery -A hope_live.config beat --scheduler django_celery_beat.schedulers:DatabaseScheduler -l "${CELERY_LOGLEVEL:-INFO}"
;;
"flower")
exec tini -- gosu hope:unicef celery -A hope_live.config flower
exec gosu hope:unicef celery -A hope_live.config flower
;;
*)
exec "$@"
Expand Down
Loading