2026-02-26 15:11:40 +00:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
2026-02-26 15:43:02 +00:00
|
|
|
import {
|
|
|
|
|
resolveRuntimePorts,
|
|
|
|
|
withRuntimePortEnv,
|
|
|
|
|
spawnWithForwardedSignals,
|
|
|
|
|
} from "./runtime-env.mjs";
|
2026-03-10 15:15:07 -03:00
|
|
|
import { bootstrapEnv } from "./bootstrap-env.mjs";
|
2026-02-26 15:11:40 +00:00
|
|
|
|
2026-03-10 15:15:07 -03:00
|
|
|
const env = bootstrapEnv();
|
2026-03-24 17:24:11 +08:00
|
|
|
const runtimePorts = resolveRuntimePorts(env);
|
2026-03-10 15:15:07 -03:00
|
|
|
|
2026-02-26 15:43:02 +00:00
|
|
|
spawnWithForwardedSignals("node", ["server.js"], {
|
2026-02-26 15:11:40 +00:00
|
|
|
stdio: "inherit",
|
2026-03-10 15:15:07 -03:00
|
|
|
env: withRuntimePortEnv(env, runtimePorts),
|
2026-02-26 15:11:40 +00:00
|
|
|
});
|