Skip to content

Commit

Permalink
entryp
Browse files Browse the repository at this point in the history
  • Loading branch information
domdinicola committed Sep 13, 2024
1 parent e49466c commit f298318
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ fi
echo "MEDIA_ROOT ${MEDIA_ROOT}"
echo "STATIC_ROOT ${STATIC_ROOT}"
echo "DEFAULT_ROOT ${DEFAULT_ROOT}"
echo "Docker run command: $1"

case "$1" in
setup)
django-admin check --deploy
django-admin upgrade
django-admin upgrade --no-static
exit 0
;;
worker)
Expand All @@ -37,7 +38,7 @@ case "$1" in
;;
run)
django-admin check --deploy || exit 1
django-admin upgrade || exit 1
django-admin upgrade --no-static || exit 1
set -- tini -- "$@"
set -- gosu user:app uwsgi --ini /conf/uwsgi.ini
;;
Expand Down

0 comments on commit f298318

Please sign in to comment.