Fix email send crash when worker lacks staticfiles manifest.
Fall back to an unhashed logo URL if ManifestStaticFilesStorage misses, and run collectstatic in the worker entrypoint.
This commit is contained in:
@@ -42,5 +42,10 @@ wait_for_database
|
||||
|
||||
uv run python manage.py migrate --noinput
|
||||
|
||||
# Email branding (and anything else that resolves static URLs) needs the
|
||||
# ManifestStaticFilesStorage map. Web entrypoint already collectstatics;
|
||||
# worker must too or hashed lookups raise ValueError.
|
||||
uv run python manage.py collectstatic --noinput
|
||||
|
||||
# dj-queue supervisor (workers + dispatcher + scheduler). Run on ONE host only.
|
||||
exec uv run python manage.py dj_queue
|
||||
|
||||
Reference in New Issue
Block a user