deploy.sh restart 命令原本 down && up --force-recreate + sleep 10, 在以下场景会卡死: 1) docker-compose up 中途异常退出,server-side 进程没回传 EOF, 本地 ssh 客户端没设 ServerAliveInterval,死链检测不到, ssh 进程挂 25+ 分钟不退出 (2026-07-21 实测) 2) up --wait 等所有服务 healthy 才返回,但本 compose 里有 oss-cors-init (restart: no, exited(0) 永远不 running) + moderationservice/notificationservice healthcheck 写错, 永远卡住 修改: - ssh_cmd / ssh_cmd_batch / scp_cmd 加 ServerAliveInterval=30 + ServerAliveCountMax=3,死链 90s 主动断 - restart 去掉前置 docker-compose down (up --force-recreate 自带 stop+create) - restart 去掉末尾 sleep 10,改 polling gateway healthy (timeout 180s) 端到端实测 1:19 通过。 Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .agents/skills | ||
| .tmp | ||
| backend | ||
| docker | ||
| docs | ||
| frontend | ||
| k8s | ||
| mock | ||
| scripts | ||
| .gitignore | ||
| AGENTS.md | ||
| CLAUDE.md | ||
| README.md | ||