Your rails_env production don't have required set up,probably missing secret_key_base.
Open /etc/nginx/sites-available/default
and change the rails_env to development:
rails_env production;
to
rails_env development;
If the app is loading it's not a passenger issue.
Production Solution:
- Enter your app root
- run:
rake secret
- copy the output
- go to
/yourapp/config/secrets.yml
- set the production
secret_key_base
Restart the passenger app :
touch /yourapp/tmp/restart.txt
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…