fix: prisma db push --accept-data-loss in startup script
Deploy Staging / build (push) Failing after 20m40s

This commit is contained in:
2026-06-28 01:30:47 +08:00
parent de48918acf
commit d36aba8c58
+1 -1
View File
@@ -40,7 +40,7 @@ RUN chown -R nextjs:nodejs /app/node_modules/@prisma /app/node_modules/prisma /a
# Startup script — migrate volumes DB then launch server
RUN printf '#!/bin/sh\n\
cd /app\n\
node ./node_modules/prisma/build/index.js db push --skip-generate 2>&1\n\
node ./node_modules/prisma/build/index.js db push --skip-generate --accept-data-loss 2>&1\n\
exec node server.js\n' > /app/start.sh && chmod +x /app/start.sh
USER nextjs