summaryrefslogtreecommitdiffhomepage
path: root/packages/cli/src
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-25 08:02:26 +0900
committerAdam Malczewski <[email protected]>2026-06-25 08:02:26 +0900
commit8a74335c21a57ee63c9a0658754430d6520dbc87 (patch)
treea5ea754c0bb515b7e48ca4fa929ecdb341e388ba /packages/cli/src
parent7535bb815c260f621c1d4b12a1a069de21ee2611 (diff)
downloaddispatch-8a74335c21a57ee63c9a0658754430d6520dbc87.tar.gz
dispatch-8a74335c21a57ee63c9a0658754430d6520dbc87.zip
fix(bin): pin dev ports in bin/up so shell BACKEND_PORT can't override .env
bin/up ran `bun --watch main.ts` without setting BACKEND_PORT, so a shell-exported BACKEND_PORT (e.g. 24991 in ~/.bashrc, set so the Dispatch CLI hits the prod server) overrode .env's dev value 24203 — Bun lets shell env win over .env — binding the dev server onto the production port and colliding with the active dispatch-server systemd service. transport-http then failed to activate (Bun.serve "port in use"), so the HTTP server never came up and the frontend got "Failed to fetch". Force BACKEND_PORT=24203 + SURFACE_WS_PORT=24205 in the setsid invocation so the dev stack is deterministic regardless of the shell environment.
Diffstat (limited to 'packages/cli/src')
0 files changed, 0 insertions, 0 deletions