Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the prisma example include prisma migrate deploy command ? #31

Open
MatteoGauthier opened this issue Aug 25, 2024 · 1 comment
Open

Comments

@MatteoGauthier
Copy link

MatteoGauthier commented Aug 25, 2024

Hey Coolify community, I was wondering if the execution of the prisma migrate deploy command was missing in the prisma example? For example, for heroku, the build tool configuration does notify the command
https://github.com/prisma/prisma-examples/blob/latest/deployment-platforms/heroku/Procfile

What do you think about it?

@justserdar
Copy link
Contributor

justserdar commented Sep 27, 2024

Do you mean post-build?
If that is what you mean, no, not by default. You can set this up as post-build/install command.
Or do it manually through putting in a direct command to run the prisma cli.

Simply put npx prisma migrate deploy in f.e:
image

I'm still learning, so if I'm wrong hopefully the community can correct me.
In my usecase with having Drizzle and Sqlite, I need to directly inject the sqlite file post build and start migration post-build, so I took a different route by merging the start & migrate function into a custom build command within my package.json file:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants