我们很抱歉,但有些不对劲.- 使用 Rails、Apache、Passenger [英] We're sorry, but something went wrong. - with Rails, Apache, Passenger
问题描述
我有带有 Apache
和 Passenger
的 Rails
3.2.3.
I have Rails
3.2.3 with Apache
and Passenger
.
我有一个在开发模式下工作的项目.当我将项目切换到生产模式时(Passenger
标准)它给了我一个 HTTP Error 500
:
I have a project working in development mode.
When I switch the project to production mode (Passenger
standard)
it gives me an HTTP Error 500
:
很抱歉,出了点问题.
即使使用 WEBrick
也会发生这种情况.有人可以帮我吗?
This happens even with WEBrick
.
Can somebody help me?
编辑:
我的生产环境文件:http://pastebin.com/ZAudSzkc
推荐答案
确保您已运行 $ bundle install
.如果这不成功,请转到您的生产环境并在您当前的生产应用程序中使用 ssh 和 $ tail -f log/production.log
连接到您的服务器.
Make sure you have ran $ bundle install
. If this doesn't succeed, go to your production environment and connect to your server using ssh and $ tail -f log/production.log
in your current production app.
这将生成一个可能显示错误的输出.
This will generate an output which might show an error.
如果这在 log/目录中没有显示错误,请执行 $ ls -la
如果有任何乘客.错误文件,请打开最新的并检查那里的错误.
If this doesn't show an error in the log/ directory do $ ls -la
if there are any passenger.error files open the latest and check for errors there.
希望对你有所帮助!
除了 log/production.log 之外,您还应该查看 Web 服务器错误日志,通常是 /var/log/apache2/error.log
或 /var/log/nginx/error.log
.一些错误被写在那里.更多信息可以在乘客手册的故障排除部分找到:
In addition to log/production.log, you should also look at the web server error log, typically /var/log/apache2/error.log
or /var/log/nginx/error.log
. Some errors are written there instead. More information can be found in the Troubleshooting section of the Passenger manual:
这篇关于我们很抱歉,但有些不对劲.- 使用 Rails、Apache、Passenger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!