This commit is contained in:
vet
2026-04-20 17:26:25 +07:00
parent fa6b610ddf
commit 83d425b182
8 changed files with 27 additions and 87 deletions

View File

@@ -271,10 +271,6 @@ _install_pc_nginx_proxy() {
return 1
fi
if [[ ! -f /app/pc/dist/index.html ]]; then
warn " /app/pc/dist/index.html 不存在;域名首页会不可用。请先执行: ./deploy-test/dt.sh pc-build"
fi
if ! _has nginx; then
if _has apt-get; then
apt-get update -y
@@ -317,7 +313,7 @@ _install_pc_nginx_proxy() {
info " 本机 Nginx 仅监听 TCP 80curl -sS -H 'Host: ${proxy_domain}' http://127.0.0.1/nginx-health 应返回 ok"
info " 外部推荐入口 https://${proxy_domain} 应由 LB/CDN/其它网关终止 HTTPS 后转发到本机 :80"
info " 建议 .env.deploy-test 设置 PC_BACKEND_ORIGIN=https://${proxy_domain}"
info " PC 静态根目录: /app/pc/dist请先执行 ./deploy-test/dt.sh pc-build"
info " PC 前端入口: Nginx :80 → 127.0.0.1:5173请先执行 ./deploy-test/07-start-frontend.sh pc"
info " 浏览器打开 https://${proxy_domain}/"
}