From 265b20769990a2cecee3f7b07ed6c82cd6be5b23 Mon Sep 17 00:00:00 2001 From: Aska Date: Sun, 6 Sep 2026 13:12:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(deploy):=20dev-up.sh=20=E7=9A=84=20gatewa?= =?UTF-8?q?y=20=E7=AB=AF=E5=8F=A3=E4=BC=98=E5=85=88=E8=AF=BB=20.env=20PORT?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/dev-up.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dev-up.sh b/scripts/dev-up.sh index 0b75af6..624ea22 100755 --- a/scripts/dev-up.sh +++ b/scripts/dev-up.sh @@ -10,7 +10,9 @@ APP_NAME="cyrene" APP_BIN="$HOME/apps/cyrene/$APP_NAME" EMB_MODEL="$MODEL_DIR/Qwen3-Embedding-0.6B-Q8_0.gguf" EMB_PORT=11434 -GW_PORT=10080 +# gateway 端口优先读 .env 的 PORT(用户可改),找不到才回退 10080 +GW_PORT="$(grep -E '^PORT=' "$REPO/.env" 2>/dev/null | head -1 | cut -d= -f2)" +GW_PORT="${GW_PORT:-10080}" cd "$REPO"