Created
April 11, 2014 18:12
-
-
Save brianjlandau/10489101 to your computer and use it in GitHub Desktop.
Secret ENV values for Heroku apps in dev
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
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