When and how to run prisma migrate deploy? I can't run it from my CI/CD since it doesn't have access to the production Postgres (not part of the VPC and shouldn't be), so when should it be done? And how...?
n
Nikolai Nergård
06/04/2021, 9:26 AM
I have the same issue when doing manual migrations. Could you get a VM or VDI?
d
Dan Shapir
06/04/2021, 1:38 PM
Nope, not as part of the CI/CD. Or at least not in a way that is cost effective.
j
Joël
06/07/2021, 6:37 AM
Hi!
So the best is when the hosting platform provides a “release phase” like Heroku
https://devcenter.heroku.com/articles/release-phase
Basically you want to only run the database migration after the build succeeds.