如何在 Rails 开发环境中获取 Hoptoad 或 Airbrake 错误通知
请任何人帮助解决,如何在 Rails 开发环境中获取 hoptoad/airbrake 错误通知,
我已经正确配置了airbrake,甚至我通过运行rake hoptoad:test 或
rake airbrake:test
但除此之外我没有得到任何东西,即错误、期望等。
请帮助我解决这个问题。
谢谢
Please any one help to solve, how to get hoptoad/airbrake Error Notification in Development Environment on Rails,
I have configured the airbrake correctly, and even I am getting test mail from airbrake i.e. by running rake hoptoad:test
or rake airbrake:test
but other then that i dont get anything, i.e. errors, expections, etc.
Please help me to solve this problem.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这里的答案应该是从你的配置中获取“开发”。在初始化程序中尝试以下行:
或
I think the answer here should be get 'development' out of your config. Try the following line in an initializer:
or
将以下内容添加到您的
config/environments/development.rb
中:并通过非环回 IP(不是
http://localhost:3000/
或http://127.0.0.1:3000/
),例如http://192.168.1.3:3000/
(在网络设置中查找正确的IP)。Add following to your
config/environments/development.rb
:And access your application through your non-loopback IP (not
http://localhost:3000/
orhttp://127.0.0.1:3000/
), e.g.http://192.168.1.3:3000/
(look for correct IP in your network settings).