diff --git a/entrypoint.sh b/entrypoint.sh index f80eb55..c68fde2 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,4 +15,8 @@ else python manage.py migrate fi +# With DEBUG disabled Django no longer serves app static assets implicitly. +# Collect them into STATIC_ROOT so the explicit /static/ URL can serve them. +python manage.py collectstatic --noinput + exec python manage.py runserver 0.0.0.0:"$PORT"