Skip to content

Instantly share code, notes, and snippets.

@frankie-loves-jesus
Last active August 29, 2015 14:01
Show Gist options
  • Save frankie-loves-jesus/200395dded95dd93e114 to your computer and use it in GitHub Desktop.
Save frankie-loves-jesus/200395dded95dd93e114 to your computer and use it in GitHub Desktop.
development:
secret_key_base: XXX
test:
secret_key_base: XXX
production:
secret_key_base: XXX
some_stuff:
key: abcdefg
secret_key: 123456789123456789
# DOES NOT WORK
ENV["SOME_STUFF_KEY"] = Rails.application.secrets.some_stuff.key
ENV["SOME_STUFF_SECRET_KEY"] = Rails.application.secrets.some_stuff.secret_key
# NOTE THAT THIS WORKS:
# ENV["SOME_STUFF_KEY"] = "abcdefg";
# ENV["SOME_STUFF_SECRET_KEY"] = "123456789123456789";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment