add media files to production compose

This commit is contained in:
godd0t
2023-05-10 13:19:19 +02:00
parent 1ae2664984
commit 70a802350a
25 changed files with 129 additions and 123 deletions

View File

@@ -4,10 +4,10 @@
if [ "$APP_ENV" != "prod" ]; then
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py runserver "$APP_HOST":"$APP_PORT"
else
python manage.py makemigrations --noinput
python manage.py migrate --noinput
python manage.py collectstatic --noinput
gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 3 --log-level=debug
fi
gunicorn "$APP_NAME".wsgi:application --bind "$APP_HOST":"$APP_PORT" --workers 3 --log-level=debug