启 development 模式正常,换成 production 模式报 We're sorry, but something went wrong. 请问是啥原因???
nginx.conf 配置 #user nobody; worker_processes 2;
#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;
#pid logs/nginx.pid;
events { worker_connections 10240; }
http { passenger_root /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.12; passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby;
client_max_body_size 20M; client_body_buffer_size 256k;
include mime.types; default_type application/octet-stream;
sendfile on; keepalive_timeout 60;
server { listen 80; server_name localhost; root /home/rails/agent/public; passenger_enabled on; rails_env development;
error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } }
server { listen 8050; server_name localhost; root /home/rails/agentc/public; passenger_enabled on; rails_env production;
#error_page 500 502 503 504 /50x.html; #location = /50x.html { # root html; #} } }