feat(scripts): dev.sh 前后端一键 start/stop/restart/status/logs

- 启动后端 uvicorn(:8000, --reload, 0.0.0.0) + 前端 next dev(:3000),setsid 独立进程组
- 停止按 pidfile + 监听端口双定位,整进程组清理(无子进程残留,实测残留 0)
- 端口探测 ss 优先(lsof 在该环境对 socket 不可靠)
- status/logs/restart;支持 API_PORT/WEB_PORT/BACKEND_API_URL 覆盖
- 日志落 logs/,pid 落 .run/(均已 gitignore);USAGE §5 增加用法
This commit is contained in:
Simon
2026-09-07 20:13:39 +08:00
parent 195f5d41f4
commit 55b684fbe1
3 changed files with 203 additions and 0 deletions
+4
View File
@@ -53,3 +53,7 @@ experiments/*
# ================= archify 视觉验证副产物(重新生成即可) =================
docs/diagrams/*.visual-check.*
# ================= 运行期(dev.sh 管理) =================
.run/
logs/