feat: dev.py 新增 --stop 并支持安装完成后自动切换到开发模式

- 本地 dev 保持前台模型、不引入 PM2;--stop 复用 kill_project_servers 一键停止
- 无 .env 时监听根 .env 出现作为安装成功信号,自动停安装 API 并以正式模式重启 api/client,避开安装中重启
- 安装 API 在 dev 模式下不再退出、迁移失败透传真实原因;前端提交后统一轮询就绪再进后台
This commit is contained in:
Nixevol
2026-07-09 17:09:15 +08:00
parent a96a04f109
commit e0c4e24b7d
6 changed files with 159 additions and 41 deletions
+3
View File
@@ -231,6 +231,9 @@
"cdnHint": "CDN acceleration URL; leave empty to disable (empty = serve from origin directly).",
"failed": "Installation failed",
"done": "Initialized. The service is restarting, please wait…",
"doneLocalDev": "Setup complete. If it does not open the admin automatically, rerun python scripts/dev.py to enter normal mode.",
"emptyResponse": "The server returned no valid response. Retry later or check server logs.",
"invalidResponse": "The server returned invalid data",
"loadFailed": "Failed to read installation status",
"testConnection": "Test",
"testOk": "Connected",