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"