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

View File

@@ -0,0 +1,9 @@
# 外层 Nginx 已把 /admin/ 转成 / 转发到本容器,此处 location / 提供 SPA
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}