fix: auto-resolve failed Prisma migration on container startup
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 16s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-18 15:14:27 +08:00
parent 6488049923
commit ebcace0baf

View File

@ -28,4 +28,4 @@ COPY --from=builder /app/package.json ./
EXPOSE 3000 EXPOSE 3000
CMD ["sh", "-c", "npx prisma migrate deploy && node dist/main.js"] CMD ["sh", "-c", "npx prisma migrate resolve --rolled-back 20250518000000_add_objectkey_bucket_aiusage_waitlist 2>/dev/null || true; npx prisma migrate deploy && node dist/main.js"]