fix: auto-resolve failed Prisma migration on container startup
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 16s
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:
parent
6488049923
commit
ebcace0baf
@ -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"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user