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

Have diesel run migrations when rocket starts #1

Open
dennismarwood opened this issue Sep 20, 2022 · 0 comments
Open

Have diesel run migrations when rocket starts #1

dennismarwood opened this issue Sep 20, 2022 · 0 comments

Comments

@dennismarwood
Copy link
Owner

dennismarwood commented Sep 20, 2022

https://docs.rs/crate/diesel_migrations/2.0.0
https://stackoverflow.com/questions/61047355/how-to-run-diesel-migration-with-rocket-in-production
https://crates.io/crates/diesel_migrations/1.4.0

It is a bad idea to include these migrations in the dockerfile because it needs the db password passed in as a variable. I don't want to accidentally check that in. Having rocket run them at start up would fix that issue.

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

1 participant