Recommended Workflow w/ Neon and Drizzle
Hi, I am migrating from PS to Neon. Made it past the MYSQL -> Postgres part and now my data is in Neon under 2 branches -- dev and main.
My typical workflow with PS was to develop on the dev branch and run
npm run db:push whenever I made schema changes.
When deploying to prod, a new deploy request would be created and merged for the main branch.
What is the recommended CI/CD workflow with Neon? Should I be using npm run db:push or generate/run migrations? The drizzle docs mention Neon in the push docs so wasn't sure. I found this video: https://www.youtube.com/watch?v=jjRasfbeYHk , not sure if the same pattern for Prisma applies to Drizzle.
Thanks!Neon
YouTube
Neon Developer workflow using Vercel and Github Actions
Learn how you can create a Neon branch for every Vercel Preview Deployment.
GitHub repository https://github.com/neondatabase/preview-branches-with-vercel
2 Replies
adverse-sapphire•2y ago

adverse-sapphire•2y ago
Try watching these videos to get a better understanding