修改配置
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#
|
||||
# 项目与端口:
|
||||
# pc → 默认 yarn dev:web :5173(无 Electron);本机要 Electron 时设 PC_ELECTRON=1 使用 yarn dev
|
||||
# 后端地址:在 .env.deploy-test 设 PC_BACKEND_ORIGIN,启动时注入 VITE_*(不改 pc 目录)
|
||||
# meetingh5 → React + Vite :5188
|
||||
# h5 → Vue + Vite :3003
|
||||
# cms → UMI Max :8001
|
||||
@@ -123,6 +124,9 @@ _start_fe() {
|
||||
fi
|
||||
|
||||
info "启动 ${BOLD}$name${NC} ..."
|
||||
if [[ "$name" == "pc" ]] && [[ -n "${PC_BACKEND_ORIGIN:-}" ]]; then
|
||||
info " pc 后端 PC_BACKEND_ORIGIN=${PC_BACKEND_ORIGIN}(注入 VITE_*,不写 pc 目录)"
|
||||
fi
|
||||
|
||||
# 写日志分隔符
|
||||
{
|
||||
@@ -133,6 +137,9 @@ _start_fe() {
|
||||
# 后台启动(带环境变量前缀)
|
||||
(
|
||||
cd "$dir"
|
||||
if [[ "$name" == "pc" ]]; then
|
||||
pc_export_vite_backend_env
|
||||
fi
|
||||
if [[ -n "$env_prefix" ]]; then
|
||||
# shellcheck disable=SC2086
|
||||
nohup env $env_prefix $cmd >> "$logfile" 2>&1 &
|
||||
|
||||
Reference in New Issue
Block a user