我们很抱歉,但是出现了一些问题。 - 使用Rails,阿帕奇,乘客 [英] We're sorry, but something went wrong. - with Rails, Apache, Passenger
问题描述
我的Rails
3.2.3 的Apache
和乘客
。
我有一个项目在开发模式下工作。
当我切换该项目的生产模式(乘客
标准)
它给了我一个 HTTP错误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
:
我们很抱歉,但出事了。
We're sorry, but something went wrong.
这会发生,即使的WEBrick
。
有人可以帮我吗?
This happens even with WEBrick
.
Can somebody help me?
修改
我的生产环境中的文件:
http://pastebin.com/ZAudSzkc
My production environment file: http://pastebin.com/ZAudSzkc
推荐答案
请确保你已经跑了 $ :.捆绑安装
如果没有成功,去你的生产环境和使用ssh连接到您的服务器和 $ :.尾-f在当前生产的应用程序日志/ 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 wich might show an error.
如果这个不显示在日志/目录做了一个错误 $ :. LS -la
如果有任何passenger.error文件公开了最新的检查错误那里。
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.
希望这有助于你出去
在除登录/ 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:
- Nginx version
- Apache version
- Standalone version
这篇关于我们很抱歉,但是出现了一些问题。 - 使用Rails,阿帕奇,乘客的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!