修改配置

This commit is contained in:
vet
2026-04-13 23:28:06 +07:00
parent fc351cf730
commit d6572d2217
6 changed files with 200 additions and 3 deletions

View File

@@ -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 &