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

Function startAutomationBackend

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

Source from the content-addressed store, hash-verified

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