diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 4af9c6e..1aa65bd 100755 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -13,6 +13,8 @@ export default defineConfig(({ mode }) => { const hmrClientPort = process.env.VITE_HMR_CLIENT_PORT ? parseInt(process.env.VITE_HMR_CLIENT_PORT, 10) : undefined + const hmrHost = process.env.VITE_HMR_HOST || undefined + const hmrProtocol = process.env.VITE_HMR_PROTOCOL || 'ws' return { plugins: [react()], @@ -27,7 +29,7 @@ export default defineConfig(({ mode }) => { }, }, server: { - allowedHosts: true, + allowedHosts: ['localhost', '127.0.0.1', 'work', '.ts.net'], hmr: { // No `host` here — Vite falls back to importMetaUrl.hostname, which is the // hostname the browser actually loaded the page from. This makes HMR work @@ -36,12 +38,13 @@ export default defineConfig(({ mode }) => { // ws://localhost:5174 from a remote machine, resolving to that machine's own // loopback rather than the server. // protocol: 'ws' prevents the client from upgrading to wss in local dev. - protocol: 'ws', + protocol: hmrProtocol, // clientPort tells the browser-side HMR client which HOST port to connect to. // Without it Vite embeds `undefined` as the port in the client bundle → // ws://hostname:undefined/ → invalid URL → no WebSocket → stale code. // Do NOT use `port` — that starts a separate HMR WS server inside the container // on that port, which has no Docker mapping and is unreachable. + ...(hmrHost !== undefined ? { host: hmrHost } : {}), ...(hmrClientPort !== undefined ? { clientPort: hmrClientPort } : {}), }, proxy: { diff --git a/omnizart-sidecar/Dockerfile b/omnizart-sidecar/Dockerfile index 838f81a..7bb57af 100644 --- a/omnizart-sidecar/Dockerfile +++ b/omnizart-sidecar/Dockerfile @@ -21,8 +21,10 @@ FROM python:3.8-slim AS base # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg \ - build-essential \ + build-essential \ git \ + portaudio19-dev \ + libsndfile1 \ && rm -rf /var/lib/apt/lists/* # Omnizart's dependency chain includes packages (notably `vamp`) that import diff --git a/stemengine.yml b/stemengine.yml index 3952bcb..43a96bf 100644 --- a/stemengine.yml +++ b/stemengine.yml @@ -132,6 +132,7 @@ services: stemengine-webui: container_name: stemengine-webui + image: stemengine-webui:latest build: context: ${SEFOLDER}/frontend dockerfile: Dockerfile.webui @@ -160,6 +161,7 @@ services: # Start: docker compose -f stemengine.yml --profile omnizart up -d omnizart-sidecar: container_name: omnizart-sidecar + image: omnizart-sidecar:latest build: context: ${SEFOLDER}/omnizart-sidecar dockerfile: Dockerfile