[英]nginx passenger - issues setting environment to staging
I'm running nginx with passenger on el7 我在El7上与乘客一起运行Nginx
the problem i am facing is when running with staging environment i am getting constant http 500 error. 我面临的问题是在临时环境中运行时,我不断遇到HTTP 500错误。
I tried all the options i could find including: 我尝试了所有可能找到的选项,包括:
passenger_app_env staging; / rails_env staging; / rack_env staging;
i am getting constant 500 error, and i can see in the logs that i am not reaching the rails server logic. 我收到恒定的500错误,并且在日志中可以看到我没有达到Rails服务器逻辑。
when i am switching that configuration to: 当我将该配置切换为:
rails_env development / rails_env productions
everything works fine. 一切正常。
eventually the problem was in the staging.rb file and since i was using passenger it masked the error and just gave me 500. 最终问题出在staging.rb文件中,由于我使用的是乘客,它掩盖了错误,只给了我500。
eventually i moved from passenger to puma....which allowed me to debug and log rails with ease. 最终,我从乘客转移到了彪马。...这使我可以轻松调试和记录铁轨。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.