Running migrations with "jets deploy" command

question

#1

I need to run migrations on when jets app is deployed using jets deploy command. Is there an inbuilt option?


#2

There’s no built-in option. Generally recommend using jets db:migrate outside the deploy process. A wrapper script could work. Something like bin/deploy:

jets db:migrate # the machine needs access to be able to migrate
jets deploy