Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created April 11, 2014 18:12
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 brianjlandau/10489101 to your computer and use it in GitHub Desktop.
Save brianjlandau/10489101 to your computer and use it in GitHub Desktop.
Secret ENV values for Heroku apps in dev
secrets_file = Rails.root.join('config', 'secrets.yml')
if secrets_file.file?
ENV.update(YAML.load_file(secrets_file)[Rails.env])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment