From e418b175bbb9deaf779176668076643faf0461d6 Mon Sep 17 00:00:00 2001 From: gabdevele Date: Wed, 17 Jun 2026 18:48:35 +0200 Subject: [PATCH] feat: add collectstatic command to entrypoint for serving static assets --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) 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"