fix: entrypoint worker 失败不阻塞启动
This commit is contained in:
parent
496ce7b1a2
commit
88656b6076
|
|
@ -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 &
|
||||
|
|
|
|||
Loading…
Reference in New Issue