Answer the question
In order to leave comments, you need to log in
Why does secret_key_base exist, but nginx still logs an error?
Good afternoon, I'm deploying a rails production server on nginx+passenger, set secret_key_base to .bashrc, but still the browser displays an error Incomplete response received from application , and in log nginx App 1247 stderr: [ 2016-05-14 06:32:41.8928 1342 /0x00000001d1fe88(Worker 1) utils.rb:87 ]: *** Exception RuntimeError in Rack application object (Missing `secret_token` and `secret_key_base` for$ what else could be the cause?
Answer the question
In order to leave comments, you need to log in
1. Check the RAILS_ROOT/config/secrets.yml file and make sure everything is set up there correctly
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question