fix: prisma db push --accept-data-loss in startup script
Deploy Staging / build (push) Failing after 20m40s
Deploy Staging / build (push) Failing after 20m40s
This commit is contained in:
+1
-1
@@ -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
|
# Startup script — migrate volumes DB then launch server
|
||||||
RUN printf '#!/bin/sh\n\
|
RUN printf '#!/bin/sh\n\
|
||||||
cd /app\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
|
exec node server.js\n' > /app/start.sh && chmod +x /app/start.sh
|
||||||
|
|
||||||
USER nextjs
|
USER nextjs
|
||||||
|
|||||||
Reference in New Issue
Block a user