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