diff options
| author | stuppie | 2026-09-17 10:05:54 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-17 10:05:54 -0600 |
| commit | b11f9a9f79f2998a9d623f50f3672d1ed85dc5bc (patch) | |
| tree | 154d99606bbfeab88bb9fb96ef4f5bf2ecf331e6 | |
| parent | e73cab566ca6f40c213c9a42d34d8f6af8515589 (diff) | |
| parent | bb1e97218e60bb12b453fadf9ea66e2423f6876f (diff) | |
| download | amt-jb-b11f9a9f79f2998a9d623f50f3672d1ed85dc5bc.tar.gz amt-jb-b11f9a9f79f2998a9d623f50f3672d1ed85dc5bc.zip | |
Merge branch 'master' of ssh://code.g-r-l.com/panels/amt-jb
| -rw-r--r-- | jb/settings.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/jb/settings.py b/jb/settings.py index 779bd85..b4bce0a 100644 --- a/jb/settings.py +++ b/jb/settings.py @@ -18,9 +18,20 @@ BASE_HTML_PATH = Path(BASE_DIR) / "templates" / "base.html" MANIFEST_PATH = Path(BASE_DIR) / "jb-ui" / "dist/.vite/manifest.json" +MANIFEST_PATHS = [ + Path("/var/www/amt-jb-cdn") / "manifest-master.json", + Path(BASE_DIR) / "jb-ui" / "dist/manifest.json", +] + + def load_manifest(): - with open(MANIFEST_PATH) as f: - return json.load(f) + for path in MANIFEST_PATHS: + if path.exists(): + with open(path) as f: + return json.load(f) + raise FileNotFoundError( + f"No manifest found in any of: {[str(p) for p in MANIFEST_PATHS]}" + ) def render_base_html() -> str: |
