Hi, has anyone deployed prisma 2 to heroku? I trie...
# orm-help
m
Hi, has anyone deployed prisma 2 to heroku? I tried using
npx prisma migrate up --experimental
on the release phase of the Procfile but npx spits out a
migrate up is not a prisma command.
. Whats the correct workflow? are you supposed to migrate the db manually before deploying to heroku? or am i doing something wrong in my Procfile/heroku deployment process.
a
The good way i work with heroku is work with db from my local create migration and push it to heroku postgresql db and just deploy my backend code
👍 1
here is my project deployed to heroku https://github.com/AhmedElywa/prisma-admin
u
It's working as expected on my side
Copy code
// Procfile
release: npm run prisma:migrate-up
web: npm run start
And here is the NPM script
Copy code
// package.json
"prisma:migrate-up": "prisma migrate up --experimental",
👍 1
m
thanks! apparently
release: npx prisma migrate up --experimental; npx prisma generate;
in the Procfile doesnt work.
u
Try to use a NPM script, so you're sure to use the prisma version defined in your dependencies
m
thanks for the tip. trying that out now
Worked thanks!
🙂 1