CognxSafeTrack commited on
Commit
2adbb41
Β·
1 Parent(s): ad21f72

fix: robust startup command with explicit logging

Browse files
Files changed (1) hide show
  1. apps/whatsapp-worker/Dockerfile +1 -1
apps/whatsapp-worker/Dockerfile CHANGED
@@ -31,5 +31,5 @@ EXPOSE 3001
31
  # ─── Combined startup ─────────────────────────────────────────────────────────
32
  # db:push is best-effort β€” failure must NOT block the API or worker.
33
  # API (webhook + REST) and worker (BullMQ) start in parallel.
34
- CMD ["sh", "-c", "(pnpm --filter @repo/database db:push || echo '[CMD] db:push skipped or failed β€” continuing') && npx tsx /app/apps/api/src/index.ts & sleep 2 && npx tsx /app/apps/whatsapp-worker/src/index.ts & wait"]
35
 
 
31
  # ─── Combined startup ─────────────────────────────────────────────────────────
32
  # db:push is best-effort β€” failure must NOT block the API or worker.
33
  # API (webhook + REST) and worker (BullMQ) start in parallel.
34
+ CMD ["sh", "-c", "echo '[CMD] Starting Database Push...' && (pnpm --filter @repo/database db:push || echo '[CMD] db:push failed, continuing...'); echo '[CMD] Starting API Server...' && pnpm --filter api start & sleep 5 && echo '[CMD] Starting WhatsApp Worker...' && pnpm --filter whatsapp-worker start & wait"]
35