LoginSignup
0
0

More than 1 year has passed since last update.

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

Last updated at Posted at 2020-02-12

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

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0