title: Rails ENV Variables
body: <p>I have recently asked a similar question to this but as the problem has moved on slighty I have decided to create a new question - I hope this is the expected approach?</p>
  
  <p>Having pushed my Rails 4 app to Heroku I keep getting an Internal Server Error Page and the error is:</p>
  
  <p><strong>You must set config.secret_key_base in your app's config</strong></p>
  
  <p>This is happening because my .gitignore file includes the <strong>config/initializers/secret_token.rb</strong> deliberately.</p>
  
  <p>I have installed the Figaro gem so that I could set my secret_key_base as an environment variable for added security. I have checked on Heroku that the key has been set correctly.</p>
  
  <p>My code for the secret_token.rb is as follows:</p>
  
  <pre><code>MyApp::Application.config.secret_key_base = ENV["SECRET_KEY_BASE"]
  </code></pre>
  
  <p>However, I'm still getting the same issue.</p>
  
  <p>Can anyone help???</p>