Commit f2df62f4 authored by hjm's avatar hjm
Browse files

fix: 部署前自动停止占用端口的容器

修改部署脚本,实现静默替换:
- Backend: 自动检测并停止占用 8080 端口的所有容器
- Web-admin: 自动检测并停止占用 5173 端口的所有容器
- 使用 docker rm -f 强制删除旧容器,避免名称冲突

这样部署时会自动替换现有服务,无需手动停止。

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent fa78e743
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment