chore(deploy): dev-up.sh 的 gateway 端口优先读 .env PORT,支持自定义端口
CI / Backend (build / vet / test / cross-compile) (push) Has been cancelled
CI / Frontend (tsc + vite build) (push) Has been cancelled

This commit is contained in:
Aska committed 2026-09-06 13:12:22 +08:00
1 parent a482bc2ea7
commit 265b207699
1 file changed
+3 -1
+3 -1
View File
@@ -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"