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

Run db migrations using percloate:migrations in PROD #70

Open
nkurothe opened this issue Dec 6, 2016 · 1 comment
Open

Run db migrations using percloate:migrations in PROD #70

nkurothe opened this issue Dec 6, 2016 · 1 comment

Comments

@nkurothe
Copy link

nkurothe commented Dec 6, 2016

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.

@gduquesnay
Copy link

+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.

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