MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / startAutomationBackend

Function startAutomationBackend

scripts/dev-static.mjs:376–402  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

374}
375
376function 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
404function startStaticServer(config) {
405 // Reuse `vitePort` as the upstream port name so the ingress route table

Callers 1

mainFunction · 0.70

Calls 4

buildAutomationCommandFunction · 0.90
logServiceFunction · 0.70
spawnServiceFunction · 0.70

Tested by

no test coverage detected