Skip to content

Instantly share code, notes, and snippets.

@dagi3d
Last active August 29, 2015 14:01
Show Gist options
  • Save dagi3d/1909dc12c88558642c56 to your computer and use it in GitHub Desktop.
Save dagi3d/1909dc12c88558642c56 to your computer and use it in GitHub Desktop.
dotenv issue
require 'dotenv'
Dotenv.load('.env', '.env.development')
puts ENV['FOO'] # prints 'foo' instead of 'bar'
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