test
This commit is contained in:
@@ -30,6 +30,8 @@ if [[ -f "$ENV_FILE" ]]; then
|
||||
set +a
|
||||
fi
|
||||
DEPLOY_TEST_IP="${DEPLOY_TEST_IP:-127.0.0.1}"
|
||||
PC_PROXY_DOMAIN="${PC_PROXY_DOMAIN:-cms-jack.imharry.work}"
|
||||
PC_BACKEND_ORIGIN="${PC_BACKEND_ORIGIN:-http://${PC_PROXY_DOMAIN}}"
|
||||
|
||||
init_script_log # ← 脚本执行日志
|
||||
|
||||
@@ -157,11 +159,8 @@ _start_fe() {
|
||||
if [[ -f "$pidfile" ]] && kill -0 "$(cat "$pidfile")" 2>/dev/null; then
|
||||
success " ✓ $name (PID=$(cat "$pidfile")) ${FE_PORT[$name]} → $logfile"
|
||||
if [[ "$name" == "pc" ]]; then
|
||||
pc_check_wasm_assets "http://${DEPLOY_TEST_IP}:5173"
|
||||
if [[ "${PC_BACKEND_ORIGIN:-}" == https://* ]]; then
|
||||
pc_check_wasm_assets "${PC_BACKEND_ORIGIN}"
|
||||
info " PC 浏览器入口建议使用: ${PC_BACKEND_ORIGIN%/}/(HTTPS + COOP/COEP;首次访问需接受自签名证书)"
|
||||
fi
|
||||
pc_check_wasm_assets "${PC_BACKEND_ORIGIN}"
|
||||
info " PC 浏览器入口建议使用: ${PC_BACKEND_ORIGIN%/}/"
|
||||
fi
|
||||
else
|
||||
error " ✗ $name 启动失败,查看日志:"
|
||||
@@ -201,8 +200,8 @@ if [[ "$TARGET" == "all" ]]; then
|
||||
|
||||
echo ""
|
||||
echo -e "${BOLD}访问地址:${NC}"
|
||||
echo " PC: http://${DEPLOY_TEST_IP}:5173 (默认 yarn dev:web;Electron 用 PC_ELECTRON=1 或 pc 目录内 yarn dev)"
|
||||
echo " PC HTTPS: https://${DEPLOY_TEST_IP}/ (OpenIM WASM DB worker 推荐入口;首次访问需接受自签名证书)"
|
||||
echo " PC: ${PC_BACKEND_ORIGIN%/}/ (Nginx HTTP :80 → pc :5173;默认 yarn dev:web)"
|
||||
echo " PC 直连调试: http://${DEPLOY_TEST_IP}:5173 (绕过 Nginx;Electron 用 PC_ELECTRON=1 或 pc 目录内 yarn dev)"
|
||||
echo " H5: http://${DEPLOY_TEST_IP}:3003"
|
||||
echo " CMS: http://${DEPLOY_TEST_IP}:8001"
|
||||
echo " Build CMS: http://${DEPLOY_TEST_IP}:8002"
|
||||
|
||||
Reference in New Issue
Block a user