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:
1 parent
d830f07757
commit
aed84b6e11
2 files changed
+33
-5
No files matched your search
@@ -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