Skip to content

Instantly share code, notes, and snippets.

@coop
Created July 24, 2014 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coop/59eceb873c0cac3ec3c9 to your computer and use it in GitHub Desktop.
Save coop/59eceb873c0cac3ec3c9 to your computer and use it in GitHub Desktop.
# config/initializers/env_vars_set.rb
Dotenv::Parser.call(File.read(Rails.root.join(".env"))).each { |(key, _)| ENV.fetch(key) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment