|
@@ -112,6 +112,11 @@ def services(c):
|
|
|
P = py(c); h = c["host"]; hp = public_host(c)
|
|
P = py(c); h = c["host"]; hp = public_host(c)
|
|
|
return [
|
|
return [
|
|
|
("detail", c["detail"], [P, "scripts/windscada_serve.py", "--host", h, "--port", str(c["detail"])]),
|
|
("detail", c["detail"], [P, "scripts/windscada_serve.py", "--host", h, "--port", str(c["detail"])]),
|
|
|
|
|
+ # ★2026-09-29 用户令:**算法服务随 serve 默认起**(算法层 = Python + FastAPI,P10)。
|
|
|
|
|
+ # 端口取自 configs/serve.json 的 algorithm(缺省 18050);它只读、不改盘上产物,
|
|
|
|
|
+ # 是后端(各栈)与前端调用算法的统一入口。
|
|
|
|
|
+ ("algorithm", c.get("algorithm", 18050),
|
|
|
|
|
+ [P, "scripts/algorithm_service.py", "--host", h, "--port", str(c.get("algorithm", 18050))]),
|
|
|
("cms", c["cms"], [P, "scripts/windcms.py", "serve", "--farm", "rudong", "--port", str(c["cms"])]),
|
|
("cms", c["cms"], [P, "scripts/windcms.py", "serve", "--farm", "rudong", "--port", str(c["cms"])]),
|
|
|
("viewer", c["viewer"], [P, "scripts/static_server.py", "--port", str(c["viewer"]), "--host", h,
|
|
("viewer", c["viewer"], [P, "scripts/static_server.py", "--port", str(c["viewer"]), "--host", h,
|
|
|
"--dir", str(ROOT / c["viewer_dir"]), "--comp", "viewer"]),
|
|
"--dir", str(ROOT / c["viewer_dir"]), "--comp", "viewer"]),
|