(config)
| 343 | } |
| 344 | |
| 345 | function startAutomationBackend(config) { |
| 346 | logService( |
| 347 | "automation", |
| 348 | `Starting on port ${config.autoBackendPort}...`, |
| 349 | c.green, |
| 350 | ); |
| 351 | |
| 352 | const automationCmd = buildAutomationCommand(process.env); |
| 353 | logService("automation", `Using ${automationCmd.source}`, c.dim); |
| 354 | |
| 355 | spawnService( |
| 356 | "automation", |
| 357 | automationCmd.command, |
| 358 | [ |
| 359 | ...automationCmd.args, |
| 360 | "--host", |
| 361 | "0.0.0.0", |
| 362 | "--port", |
| 363 | config.autoBackendPort.toString(), |
| 364 | ], |
| 365 | { |
| 366 | cwd: config.stateDir, |
| 367 | env: buildAutomationBackendEnv(config), |
| 368 | color: c.green, |
| 369 | }, |
| 370 | ); |
| 371 | } |
| 372 | |
| 373 | function startStaticServer(config) { |
| 374 | // Reuse `vitePort` as the upstream port name so the ingress route table |
no test coverage detected