修改配置
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
# ./07-start-frontend.sh <project> # 只启动指定项目
|
||||
#
|
||||
# 项目与端口:
|
||||
# pc → Electron + Vite :7777
|
||||
# pc → Electron + Vite :7777(无 GUI 时设 PC_WEB_ONLY=1 仅用浏览器 :5173)
|
||||
# meetingh5 → React + Vite :5188
|
||||
# h5 → Vue + Vite :3003
|
||||
# cms → UMI Max :8001
|
||||
@@ -82,6 +82,12 @@ declare -A FE_PORT=(
|
||||
[build-down]=":8003"
|
||||
)
|
||||
|
||||
# 无 GUI / 缺 libatk 等:仅启动 Vite,浏览器访问(默认 :5173,可用 VITE_WEB_PORT 覆盖)
|
||||
if [[ "${PC_WEB_ONLY:-}" == "1" ]] || [[ "${PC_WEB_ONLY:-}" == "true" ]]; then
|
||||
FE_CMD[pc]="yarn dev:web"
|
||||
FE_PORT[pc]=":5173 (Vite 浏览器,PC_WEB_ONLY)"
|
||||
fi
|
||||
|
||||
# ── 启动单个前端服务 ──────────────────────────────────────────────────────────
|
||||
_start_fe() {
|
||||
local name="$1"
|
||||
|
||||
Reference in New Issue
Block a user