I recently asked a similar question, but since the problem has changed somewhat, I decided to create a new question - I hope this is the expected approach?
By pushing my Rails 4 application to Heroku, I keep getting the page with the internal server error, and the error:
You must set config.secret_key_base to your application configuration
This is because my .gitignore file contains config / initializers / secret_token.rb intentionally.
I set the Figaro gem so that I can set my secret_key_base as an environment variable for added security. I checked Heroku that the key was installed correctly.
My code for secret_token.rb is as follows:
MyApp::Application.config.secret_key_base = ENV["SECRET_KEY_BASE"]
However, I still get the same problem.
Can anyone help?
source share