-
|
I am creating a database migration function using umzug. Instead of triggering the function manually via HTTP, I want it to run after (or during) every deploy. The function checks the database to see if there any pending migrations, and if so, executes them. Is there any way to accomplish this as part of Vercel Deployments? |
Beta Was this translation helpful? Give feedback.
Answered by
styfle
Aug 13, 2020
Replies: 1 comment 1 reply
-
|
I would suggest running the database migration in the build step so it will execute for every deploy. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
styfle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would suggest running the database migration in the build step so it will execute for every deploy.