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

#Rails + dotenv-rails / overload env files / not linux or OS or shell or docker container env #2980

Open
YumaInaura opened this issue Feb 12, 2020 · 0 comments

Comments

@YumaInaura
Copy link
Owner

dotenv-rails does not prepare smart configuration for overload env ?

i write in

config/environments/development.rb

or

config/application.rb

( after Rails app configuration )

Dotenv.overload(*[
  Rails.root.join(".env.#{Rails.env}.local"),
  (Rails.root.join(".env.local") unless Rails.env.test?),
  Rails.root.join(".env.#{Rails.env}"),
  Rails.root.join(".env"),
].compact)

see
https://github.com/bkeepers/dotenv/blob/v2.7.5/lib/dotenv/rails.rb#L57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant