This commit is contained in:
vet
2026-04-20 23:21:10 +07:00
parent 462614e82e
commit ea6019311f

View File

@@ -127,6 +127,8 @@ _start_fe() {
local pidfile="$PID_DIR/fe-${name}.pid"
local logfile="$LOG_DIR/fe-${name}.log"
_check_fe_port_free "$name" || return 1
# 已在运行
if [[ -f "$pidfile" ]] && kill -0 "$(cat "$pidfile")" 2>/dev/null; then
warn "$name 已在运行 (PID=$(cat "$pidfile")),跳过"
@@ -156,8 +158,6 @@ _start_fe() {
return 1
fi
_check_fe_port_free "$name" || return 1
info "启动 ${BOLD}$name${NC} ..."
if [[ "$name" == "pc" ]]; then
pc_ensure_wasm_assets