feat: add collectstatic command to entrypoint for serving static assets

This commit is contained in:
gabdevele
2026-06-17 18:48:35 +02:00 Unverified
parent 648baeab5e
commit e418b175bb
+4
View File
@@ -15,4 +15,8 @@ else
python manage.py migrate python manage.py migrate
fi 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" exec python manage.py runserver 0.0.0.0:"$PORT"