sik
DTDrizzle Team
•Created by sik on 8/26/2023 in #help
import { PostgresError } from "postgres" - build error?
3 replies
DTDrizzle Team
•Created by sik on 8/13/2023 in #help
What's the best way to deploy migrations on production database?
I'm confused as to what is the best way to deploy migration on the production database.
Locally when I test on my local database instance, I use the commands manually to generate and push the migrations
But I want to automate this.
Say, I'm using Vercel and I want to push the migration on every commit.
In prisma to deploy the generated migrations I use the command
prisma migrate deploy
, I add this command to the build command like this: prisma generate && prisma migrate deploy && next build
There are my scripts in package.json
16 replies