title: Rails: An unhandled lowlevel error occurred. The application logs may have details
body: <p>I made this on my server:</p>
  
  <pre><code>deploy@ubuntu-512mb-ams2-01:~/applications/spa_backend/current$ bundle exec rake secret
  4b921910**
  deploy@ubuntu-512mb-ams2-01:~/applications/spa_backend/current$ export SECRET_KEY_BASE=4b921910**
  deploy@ubuntu-512mb-ams2-01:~/applications/spa_backend/current$ irb
  irb(main):001:0&gt; ENV["SECRET_KEY_BASE"]
  =&gt; "4b921910**"
  </code></pre>
  
  <p>And when I try open link with my app, I see this:</p>
  
  <p><code>An unhandled lowlevel error occurred. The application logs may have details.</code></p>
  
  <p>puma_error.log:</p>
  
  <pre><code>#&lt;RuntimeError: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`&gt;
  /home/deploy/applications/spa_backend/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:513:in `validate_secret_key_config!'
  /home/deploy/applications/spa_backend/shared/bundle/ruby/2.3.0/gems/railties-5.0.0.1/lib/rails/application.rb:246:in `env_config'
  </code></pre>
  
  <p><strong>secrets.yml:</strong></p>
  
  <pre><code>production:
    secret_key_base: &lt;%= ENV["SECRET_KEY_BASE"] %&gt;
  </code></pre>
  
  <p><strong>UPD.</strong> I changed <code>&lt;%= ENV["secret_key_base"] %&gt;</code> -> <code>&lt;%= ENV["SECRET_KEY_BASE"] %&gt;</code> but it didn't help</p>