How do you manage secret keys and heroku with Ruby on Rails 4.1.0beta1?

heroku, ruby-on-rails

Solution

see this link for heroku settings

if u want to run on local use like this

KEY=xyz OTHER_KEY=123 rails s

Problem

With the release of the secrets.yml file, I removed my reliance on Figaro and moved all of my keys to secrets.yml and added that file to .gitignore. But when I tried to push to Heroku, Heroku said they needed that file in my repo in order to deploy the website. which makes sense, but I don't want my keys in git if I can avoid it. With Figaro, I would run a rake task to deploy the keys to heroku as env variables and keep application.yml in the .gitignore. Obviously, I can't do that any more. So how do I handle this?

Original source