Commit 1e628d5
committed
fix: collectstatic race + bump submodule for language switcher hardening
CMS entrypoint
- Wipe STATIC_ROOT manually before collectstatic instead of relying on
--clear. Django 4.2 ManifestStaticFilesStorage races between --clear
and the post-process pass: a deleted hashed file gets re-targeted by
the group-id chown step and the entrypoint dies with FileNotFoundError
on files like admin/js/vendor/select2/i18n/<lang>.<hash>.js. Doing the
wipe out-of-band makes the two phases sequential, not concurrent.
This was leaving the Wagtail admin assets partially deployed every
time, which is why /admin/ login was broken.
- Add 'set -e' so future entrypoint failures actually fail the container
instead of silently leaving services in a half-deployed state.
Submodule bump
- eafw_geomanager_web -> 3df051e (language switcher hardening: wipe
localStorage/sessionStorage + hard reload).1 parent c2e650c commit 1e628d5
2 files changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
8 | 19 | | |
9 | 20 | | |
10 | 21 | | |
| |||
Submodule eafw_geomanager_web updated from 44033b2 to 3df051e
0 commit comments