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

Function startAutomationBackend

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

Source from the content-addressed store, hash-verified

343}
344
345function 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
373function startStaticServer(config) {
374 // 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