flybrain/infra/config/serve.sh
acamilo 660c3cf00d
Some checks failed
ci / node 22 (test + typecheck) (push) Has been cancelled
ci / rust stable (cargo test --workspace --release) (push) Has been cancelled
ci / infra/tests/lint.sh (push) Has been cancelled
ci / playwright apps/stage (allowed to fail) (push) Has been cancelled
flybrain v0.4.0: public tree (history retained privately)
2026-09-21 15:09:46 +00:00

10 lines
493 B
Bash
Executable file

#!/usr/bin/env bash
# infra/config/serve.sh — deployed to /opt/fly/current/stage/serve.sh, the
# ExecStart for flystage-web.service. Resolves its own directory so it
# serves whatever release it actually lives in, regardless of the
# `current` symlink's target at start time, and execs node so systemd
# tracks the real process (no wrapper left as an orphaned parent).
set -euo pipefail
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
exec node "${dir}/serve.mjs" "$dir" 127.0.0.1 7402