Rails乘客生产错误日志?

时间:2012-01-30 19:42:01

标签: ruby-on-rails heroku logging

我刚刚使用乘客部署了一个rails应用程序。现在我在其中一个页面上获得了404。我想知道我在哪里可以得到错误日志。就像我在运行rails s时获得开发环境的那个,或者像问题heroku logs时heroku所提供的那样。

P.S我查看了production.log,但没有显示错误

更新 - 这是我的示例vh配置,错误日志中没有任何内容

<VirtualHost *:80>
     ServerAdmin webmaster@example.org
     ServerName example.org
     ServerAlias www.example.org
     DocumentRoot /srv/www/example.org/public_html/
     ErrorLog /srv/www/example.org/logs/error.log
     CustomLog /srv/www/example.org/logs/access.log combined
</VirtualHost>

由于

1 个答案:

答案 0 :(得分:2)

如果404页面是Rails 404页面,还是apache / nginx 404页面?如果它看起来不像rails 404页面,那么你最好的选择是apache / nginx日志。

相关问题