Skip to content

Instantly share code, notes, and snippets.

@maca
Created July 15, 2014 02:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save maca/caa8db62653be1ece4fc to your computer and use it in GitHub Desktop.
Save maca/caa8db62653be1ece4fc to your computer and use it in GitHub Desktop.
development:
secret_key_base: 'hardoced-value-for-simplicity'
facebook_app_id: 'hardoced-value-for-simplicity'
facebook_app_secret: 'hardoced-value-for-simplicity'
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> # I want to raise an exception early if the ENV var is not set
facebook_app_id: <%= ENV["FACEBOOK_APP_ID"] %>
facebook_app_secret: <%= ENV["FACEBOOK_APP_SECRET"] %>
@maca
Copy link
Author

maca commented Jul 15, 2014

<%= ENV['SECRET_KEY_BASE'] || raise 'value not set' %>
Won't cut it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment