-
-
Save dagi3d/1909dc12c88558642c56 to your computer and use it in GitHub Desktop.
dotenv issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOO=foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOO=bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dotenv' | |
Dotenv.load('.env', '.env.development') | |
puts ENV['FOO'] # prints 'foo' instead of 'bar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> require 'dotenv' | |
=> true | |
irb(main):002:0> Dotenv.load('.env', '.env.development') | |
=> {"FOO"=>"bar"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment