How do I deploy nodejs with prisma

Viewed 16

I'm trying to deploy nodejs app to my own server (not serverless) using GitHub Actions. React app was easy. I just uploaded the build folder to my server and it works. But I'm so confused with nodejs, and prisma app.

Prisma generates types to the node_modules folder when prisma migrate command is given in the GitHub workflow. But now I need to copy the entire node_modules folder. If I do not want to copy the node_modules folder, I need to manually install and run prisma commands in my own server after deployment.

How do I deploy correctly? I want to deploy only the build folder like React app. Is it possible?

0 Answers
Related