percolatestudio/meteor-migrations

Run db migrations using percloate:migrations in PROD

nkurothe opened this issue · 1 comments

What are the best ways of running the Migrations.migrateTo('latest'); in PROD. I know we cannot use meteor shell in PROD.

I want to be able to run Migrations.migrateTo('latest'); outside of the code preferably in some sort of deploy script, which would give me greater control when I an upgrading my meteor app.

+1

What I'm doing for now is adding a meteor method to do Migrations.migrateTo('latest') which I can call from the browser console to control when I run migrations.

Just remember to do some kind of authorization check in this method.