-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrations in docker #13
Comments
I have learned that you can add the command property to the
This is how I currently have it setup and it does work. It will run whenever and only when I am, however, a little on the fence as to whether this is the best way to handle things. There is a pretty intense discussion about the purpose of the
...and have the entrypoint script do all the things. I'm still a little fuzzy on whether the entrypoint gets ran on each |
@hkn34 I have no strong opinions. I might, if we ever use docker for more than just running tests, or if I learn more about docker itself. But I'll defer to you, since I think you've dug a little deeper into docker than I have! I will say that I tried the All that to say, I'm happy with however you want to try it! |
Currently, if I make a migration for the dummy project, I have to
docker-compose run app bash
,cd test/dummy
, and runbin/rails db:migrate
. Surely there's a way to do this fromdocker-compose.yml
. I tried adding&& cd test/dummy && bin/rails db:migrate
to thecommand
, but it didn't seem to work.The text was updated successfully, but these errors were encountered: