Reputation: 2089
I am using Rails 4.1's secrets.yml to store my keys etc, but I am wondering, if this file should be gitignore, so I don't store any sensitive data in my repo?
If I gitignore it, how do I access secrets on my server? (Which is Engineyard, in this case)
Upvotes: 0
Views: 198
Reputation: 161
You should use envirement-variablesand set them on the production-system.
key: <%= ENV['PRODUCTION_KEY'] %>
I don´t know Engineyard, but on heroku there are some simple commands to set the envirement-variables
heroku config:add PRODUCTION_KEY=123
@Update, here is a post on stackoverflow on how you set them on engineyard
Upvotes: 1