Run Prisma migrations on start in Docker
continuous-integration/drone/push Build is passing Details

main
Guus van Meerveld 1 year ago
parent 4c383a2a35
commit 782c0117d9
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -31,4 +31,4 @@ USER nextjs
EXPOSE 3000
CMD ["yarn", "start"]
CMD ["yarn", "run", "start:migrate"]

@ -5,6 +5,7 @@
"build": "next build",
"start": "next start",
"prisma:generate": "prisma generate",
"start:migrate": "prisma migrate deploy && yarn run start",
"export": "next build && next export",
"test-build": "tsc",
"lint": "next lint",

Loading…
Cancel
Save