tags:

views:

27

answers:

1

I read somewhere but cannot seem to find where to add secret keys into Heroku without needing to put it into the source code git repository?

I guess that helps keep it secure when I am pushing into github.

How do I do that and does that make sense to do?

A: 

http://docs.heroku.com/config-vars

Then add the development keys to an initializer:

#config/initializers/keys.rb

development:
  SOME_KEY = 'abc123' #not your production key

testing:
  SOME_KEY = 'abc123' #not your production key

#production:
  #blank

Optionally add the initializer to .gitignore. Not required as your production key isn't stored.

mark
super-- I don't quite understand how to then store them on my local windows machine to use in development...? Do you know?
Angela
Hi Angela. Check my edit.
mark