Fix orchestrator to inherit env vars when spawning modes
This commit is contained in:
@@ -88,8 +88,8 @@ async function startMode(mode: string): Promise<boolean> {
|
|||||||
cmd: [process.execPath, 'run', serverPath],
|
cmd: [process.execPath, 'run', serverPath],
|
||||||
cwd: modePath,
|
cwd: modePath,
|
||||||
env: {
|
env: {
|
||||||
// Force mode service to bind to shared port
|
...process.env, // Inherit all env vars (secrets, etc.)
|
||||||
PORT: String(SHARED_PORT),
|
PORT: String(SHARED_PORT), // Force mode service to bind to shared port
|
||||||
},
|
},
|
||||||
stdout: 'pipe',
|
stdout: 'pipe',
|
||||||
stderr: 'pipe',
|
stderr: 'pipe',
|
||||||
|
|||||||
Reference in New Issue
Block a user