I am unable to set secret_key_base
for the production environment in Ruby on Rails 4.1.4 application running on Heroku.
Here are the steps that I've tried to do:
Run
rake secret
and copy the secret key to the clipboardRun
heroku config:set SECRET_KEY_BASE=%SECRET_KEY%
It returns success and Heroku lists this environment variable in the dashboard on the site, but the application still thinks that the secret key was not provided:
Missing
secret_key_base
for 'production' environment, set this value inconfig/secrets.yml
Why? What am I doing wrong? How can I fix it?
Thanks in advance.