-
Notifications
You must be signed in to change notification settings - Fork 82
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
Enviroment variables from docker-compose.yml have no effect #172
Comments
Good catch--I agree you're correct. The code you suggest is one way to fix it. However, there are multiple settings in the app that may need to be overridden, including basically everything in the database.yml and secrets.yml files. A better solution may be to use an erb expression in the yaml instead, so that any value can be conditionally overridden using ENV settings. For example:
This is supported in database.yml ... but would need to check on secrets.yml. With this change, the code itself would be unchanged and all the ENV support would go through the config file(s). |
So it needs to be renamed .yml.erb right? |
No, ERB notation is supported directly in the file and the extension does not have to be changed. (From docs, but not tested :-).) |
The DB options in the docker-compose file seem to have no effect on the connection parameters of the application instead only the config/database.yml is respected.
How would this be corrected? Like this?
puma.rb:
The text was updated successfully, but these errors were encountered: