Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Created May 5, 2014 16: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 JoshCheek/a55eadccf20b683be83a to your computer and use it in GitHub Desktop.
Save JoshCheek/a55eadccf20b683be83a to your computer and use it in GitHub Desktop.
example of secrets.yml overriding with ENV
development:
stripe_publishable_key: pk_test_abc123
stripe_secret_key: sk_test_def456
test:
stripe_publishable_key: STRIPE_PUBLISHABLE_KEY
stripe_secret_key: STRIPE_SECRET_KEY
production:
stripe_publishable_key: <%= ENV["STRIPE_PUBLISHABLE_KEY"] %>
stripe_secret_key: <%= ENV["STRIPE_SECRET_KEY"] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment