deploy: 挂目录+替换文件部署,构建产物到 deploy/,不重建 web/admin 镜像

Made-with: Cursor
This commit is contained in:
whm
2026-03-18 17:42:52 +08:00
parent d5bc102bd7
commit 5492456148
9 changed files with 112 additions and 26 deletions

8
deploy/README.md Normal file
View File

@@ -0,0 +1,8 @@
# deploy 目录(挂目录 + 替换文件部署)
- **deploy/web/dist**:前台构建产物,由 `pull-and-restart.sh` 生成;替换此目录内容即可更新前台。
- **deploy/admin/dist**:后台构建产物,同上。
- **deploy/api/server**API 二进制,同上;替换后重启 api 容器生效。
- **deploy/web/default.conf**、**deploy/admin/default.conf**Nginx 配置,已纳入版本库。
日常更新:在服务器执行 `./pull-and-restart.sh` 会拉代码、重新构建到上述目录并重启容器。若只改静态资源,也可在服务器上手动构建后只重启对应容器。