chore(deploy): dev-up.sh 的 gateway 端口优先读 .env PORT,支持自定义端口
This commit is contained in:
1 parent
a482bc2ea7
commit
265b207699
1 file changed
+3
-1
+3
-1
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user