Skip to content

Instantly share code, notes, and snippets.

@brianjlandau
Created April 11, 2014 18:12
Show Gist options
  • Select an option

  • Save brianjlandau/10489101 to your computer and use it in GitHub Desktop.

Select an option

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