CognxSafeTrack commited on
Commit Β·
2adbb41
1
Parent(s): ad21f72
fix: robust startup command with explicit logging
Browse files
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
|
| 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 |
|