fix(server): prioritize pi-multifx-pedal-ui/dist over src/web/ui-dist for Helix UX
Reordered UI_DIST_DIR candidates so pi-multifx-pedal-ui/dist (the correct Helix-style pedal UI) is checked first. The old priority put src/web/ui-dist first, which allowed wrong-build deploys to mask the real UI. Also add UI_DIST_DIR env var to systemd service for explicit path.
This commit is contained in:
+2
-2
@@ -56,11 +56,11 @@ _ui_dist_env = os.environ.get("UI_DIST_DIR")
|
||||
if _ui_dist_env:
|
||||
UI_DIST_DIR = Path(_ui_dist_env).resolve()
|
||||
else:
|
||||
# Look relative to backend package first, then common project layouts
|
||||
# Priority order: pi-multifx-pedal-ui (Helix style) -> src/web/ui-dist (legacy) -> frontend-react (deprecated)
|
||||
_candidates = [
|
||||
Path(__file__).resolve().parent.parent.parent.parent / "pi-multifx-pedal-ui" / "dist",
|
||||
Path(__file__).resolve().parent / "ui-dist",
|
||||
Path(__file__).resolve().parent.parent.parent / "frontend-react" / "dist",
|
||||
Path(__file__).resolve().parent.parent.parent.parent / "pi-multifx-pedal-ui" / "dist",
|
||||
]
|
||||
UI_DIST_DIR = next((d for d in _candidates if d.is_dir()), None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user