(config)
| 374 | } |
| 375 | |
| 376 | function startAutomationBackend(config) { |
| 377 | logService( |
| 378 | "automation", |
| 379 | `Starting on port ${config.autoBackendPort}...`, |
| 380 | c.green, |
| 381 | ); |
| 382 | |
| 383 | const automationCmd = buildAutomationCommand(process.env); |
| 384 | logService("automation", `Using ${automationCmd.source}`, c.dim); |
| 385 | |
| 386 | spawnService( |
| 387 | "automation", |
| 388 | automationCmd.command, |
| 389 | [ |
| 390 | ...automationCmd.args, |
| 391 | "--host", |
| 392 | "0.0.0.0", |
| 393 | "--port", |
| 394 | config.autoBackendPort.toString(), |
| 395 | ], |
| 396 | { |
| 397 | cwd: config.stateDir, |
| 398 | env: buildAutomationBackendEnv(config), |
| 399 | color: c.green, |
| 400 | }, |
| 401 | ); |
| 402 | } |
| 403 | |
| 404 | function startStaticServer(config) { |
| 405 | // Reuse `vitePort` as the upstream port name so the ingress route table |
no test coverage detected