From 3615902e8db7b66f975e41c2e1844f66559b7f5a Mon Sep 17 00:00:00 2001 From: chenjw28 <792430652@qq.com> Date: Sat, 26 Sep 2026 21:14:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(deploy):=20.env=20=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E5=86=99=20BACKEND=5FPORT=3D=EF=BC=88=E7=A9=BA=E5=80=BC?= =?UTF-8?q?=EF=BC=89=EF=BC=8Cbackend=20=E4=B8=8D=E5=86=8D=E9=9A=8F?= =?UTF-8?q?=E6=9C=BA=E5=88=86=E9=85=8D=E5=AE=BF=E4=B8=BB=E6=9C=BA=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- .env.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 78c3989..9de5ef0 100644 --- a/.env +++ b/.env @@ -10,7 +10,7 @@ INVENTORY_PORT=10004 # unified 模式下前端 Nginx 对外端口(浏览器入口) FRONTEND_PORT=10003 # unified 模式 backend 是否暴露宿主端口:留空 = 不暴露(仅经前端 /api 反代) -# BACKEND_PORT= +BACKEND_PORT= # 应用内部监听端口(通常无需修改;uvicorn 命令硬编码 8000/8001) # PORT 与 HOST 仅在直跑 uvicorn 时生效,compose 容器内 uvicorn 不读这两个 env HOST=0.0.0.0 diff --git a/.env.example b/.env.example index 3f3c2ae..3a48886 100644 --- a/.env.example +++ b/.env.example @@ -9,7 +9,7 @@ MOLDINSIGHT_PORT=10003 # moldinsight-only 独立部署(必填) INVENTORY_PORT=10004 # inventory-only 独立部署(必填) # unified 模式 backend 是否暴露宿主端口:留空 = 不暴露(仅经前端 /api 反代), # 设值(如 10005)= 直接暴露(调试 / 压测用,注意 10003 已被 frontend 占用) -# BACKEND_PORT= +BACKEND_PORT= # ================================ DEBUG=false