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
John
John2y ago
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
shikishikichangchang
Sorry what I meant was some script that can push to Planetscale and deploy to vercel? if that makes sense
needmorewood
needmorewood2y ago
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
ibramsterdam
ibramsterdam2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
shikishikichangchang
Does it keep track of which migration I'm on so far?
kacakthegreat
kacakthegreat2y ago
@shikishikichangchang whats your solution, im looking for an answer as well
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server