I created a rails 4.1.4 app which I'm trying to host on heroku, but I get the following error -
Missing secret_key_base
for production
environment, set this value in config/secrets.yml
My secrets.yml file looks has secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
under production
I ran rake secret and saved the result in the environment variable SECRET_KEY_BASE. When I log into my app on heroku, I can see that value stored in the Config Variables when I click on settings.
Other solutions have suggested I add config/secrets.yml to git and redeploy to heroku - however I don't wish to add secrets.yml, or any yml file to version control.
Any ideas?
Thanks!
heroku restart
? – Richard Peck