fix: entrypoint worker 失败不阻塞启动

This commit is contained in:
aiyimickey 2026-07-01 19:57:38 +08:00
parent 496ce7b1a2
commit 88656b6076
1 changed files with 2 additions and 1 deletions

View File

@ -5,8 +5,9 @@ set -e
echo "[entrypoint] Starting monitor-ai..."
# 启动 MonitorWorker后台tsx 即时执行 TypeScript
# Worker 失败不影响 Next.js 主进程
npx tsx scripts/monitor-worker.ts &
WORKER_PID=$!
WORKER_PID=$! || true
# 启动 Next.js standalone server
node server.js &