部署 有没有好的方法查看 rails 运行的 log 信息

hutuxiansheng · July 02, 2013 · Last by imlcl replied at July 08, 2013 · 2871 hits

nginx 部署 rails 后,有没有好的方法查看 rails 运行的 log 信息,就和 rails s 输出的信息一样的那种最好,因为部署后,如果有错误,不好定位错误!

tail -f log/production.log ?

#1 楼 @rociiu 如果出错,里面的出错信息不全

如果是产品环境配置下 exception notifier 之类的东西。。

#3 楼 @rociiu 怎么样去配置,求指点啊,

#4 楼 @hutuxiansheng 楼上已经给出关键词了,为什么不搜一搜?

http://lmgtfy.com/?q=exception+notifier

其实用 newrelic 或 airbrake 挺好的,省事多了。

谢谢各位,已经解决啦~~~~~

#5 楼 @Rei lmgtfy.com....

You need to Sign in before reply, if you don't have an account, please Sign up first.