fix(web, P0): nginx entrypoint ln -sf 替换已有文件失败导致web容器无限重启,阻塞staging部署 #1855
Reference in New Issue
Block a user
Delete Branch "fix/lipsync-worker-module-not-found"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
根因(经staging SSH诊断确认)
base nginx镜像
/etc/nginx/conf.d/default.conf是普通文件(非symlink/目录),alpine busyboxln -sf在 target 已存在且为普通文件时行为异常,报错 File exists,容器启动失败进入 restart loop。这导致 #1854 部署后健康检查失败,自动回滚。
修复
在 ln 前先 rm -f 原有 default.conf:
staging 上 ephemeral 容器已验证:rm后ln成功创建symlink。
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1855 已关闭或合并,对应的预览环境已被清理。