Prisma npx db push on vercel --prod
How do I populate the tables for my production database when I push to vercel the first time? Do I have to do it manually?
8 Replies
You don’t have database on Vercel, you can push to db from local machine
Vercel doesn’t provide you with database
If you want to “automate” the db update when you push to Vercel, you shouldn’t, you don’t want your db randomly changing
Sorry what I meant was some script that can push to Planetscale and deploy to vercel? if that makes sense
Planetscale doesn't allow for direct schema changes, I would just find some integration that works for your setup like a GitHub action or some sort of ci/cd setup
Once your in production mode I should say, planetscale doesnt allow direct schema changes
It seems like you are new and are probably working on a smaller project. My preference goes to using railway.app to host databases for small projects!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Does it keep track of which migration I'm on so far?
@shikishikichangchang whats your solution, im looking for an answer as well
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View