-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Ignore un-existence of database.yml #460
Conversation
maxmeyer
commented
Sep 14, 2017
•
edited
Loading
edited
- This makes unicorn happy if either DATABASE_URL is set or the config/database.yml is available
- Silence output of ActiveRecord - depending on LOG_LEVEL
@maxmeyer thank you for the contribution. The code seems to be breaking a rule in rubocop, could you take care of it before I merge? |
@gabrielpoca Yes, of course. Done. |
@gabrielpoca Ok? |
Thank you @maxmeyer! I only now got the time to look at this change more carefully, if the |
The problem is this: I removed the file in my container, as |
@maxmeyer I hope you don't mind me insisting, but it's not clear for me yet. If |
@gabrielpoca Because I was unaware of this and overhead it in your comment. Thinking more about it, the approach of having this indirection with |
@maxmeyer yes, you are right, it's less flexible. It does work in production, but in development you would have to replace the file. If no one has complained about it not working when running in development, do you still think we should merge this? |
@gabrielpoca I think yes, normally I try to build my docker images that they work in all environments the same. This https://12factor.net/config may give some more info why it makes sense to configure an application via environment variables. @pascalw You added the docker support. What do you think? Shall the image work in all environments - |
@maxmeyer @gabrielpoca I do think ideally the Docker image works in every environment. However I'm not convinced the changes in this PR are required to achieve that. For example I'm able to run Stringer with
Afaik Activerecord prioritizes |
@mockdeep I think this one can be closed |
Sure, sounds good. @maxmeyer if you have any other thoughts on this, happy to hear them. |
This is fine for me. I'm not using Stringer anymore. |