From 8b08d00dec6e6cdecf405d4151256572a1a2bcf3 Mon Sep 17 00:00:00 2001 From: winkidney Date: Wed, 4 May 2022 21:42:10 +0800 Subject: [PATCH] feauture: add back start.sh --- docker/scripts/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/scripts/start.sh b/docker/scripts/start.sh index 3ced08f..c066bb1 100755 --- a/docker/scripts/start.sh +++ b/docker/scripts/start.sh @@ -14,13 +14,13 @@ bash ${PROJECT_ROOT}/docker/scripts/bootstrap.sh # If static files don't exist collect them cd ${PROJECT_ROOT} -make collect-static-no-input +python manage.py collectstatic --noinput # If database doesn't exist yet create it if [ ! -f /data/production.db ] then cd ${PROJECT_ROOT} - make migrate-no-input + python manage.py migrate --noinput fi # Fix all settings after all commands are run @@ -30,4 +30,4 @@ chown -R www-data:www-data /data /usr/sbin/nginx cd ${PROJECT_ROOT} -make serve-gunicorn +./docker/scripts/_start_gunicorn.sh