From f298318fcd212d45381467d91f3e0ec434257c25 Mon Sep 17 00:00:00 2001 From: Domenico DiNicola Date: Fri, 13 Sep 2024 14:29:21 +0200 Subject: [PATCH] entryp --- docker/bin/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/bin/docker-entrypoint.sh b/docker/bin/docker-entrypoint.sh index dd6fee5..6fa9956 100755 --- a/docker/bin/docker-entrypoint.sh +++ b/docker/bin/docker-entrypoint.sh @@ -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) @@ -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 ;;