-
Notifications
You must be signed in to change notification settings - Fork 25
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
[gh394] Remove the Figaro gem dependency - Andy changes #411
[gh394] Remove the Figaro gem dependency - Andy changes #411
Conversation
c206733
to
07b67f5
Compare
f4df671
to
ac3f64f
Compare
|
||
if rails_env == 'production' | ||
# Read the contents of the .env file | ||
File.readlines('.env.development.local.example').each do |line| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we build the Docker image, why not using the attribute env_file
: https://docs.docker.com/compose/environment-variables/set-environment-variables/#use-the-env_file-attribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the env_file but not sure why the ENV can't find there...still need time to figure out @olivierobert :D
# And it requires the envs as we always use `ENV.fetch` to setup the variables | ||
# | ||
# Related issue: https://github.com/rails/rails/issues/32947 | ||
# TODO: https://github.com/nimblehq/rails-templates/issues/326 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, DHH gave a solution that works with a dummy key: rails/rails#32947 (comment)
I'm closing this PR as we might not need to remove the figaro way as the new figaro fork solved the issue #419 |
close #
What happened 👀
Provide a description of the changes this pull request brings to the codebase. Additionally, when the pull request is still being worked on, a checklist of the planned changes is welcome to track progress.
Insight 📝
Describe in detail why this solution is the most appropriate, which solution you tried but did not go with, and how to test the changes. References to relevant documentation are welcome as well.
Proof Of Work 📹
Show us the implementation: screenshots, GIFs, etc.