Is there a gem or way to send a mail with action mailer to a predefined admin@myhost.ltd ? I have been looking for some gems to handle exceptions and notify me when a production app has serious issues turndowns or other major failures.
是否有宝石或方法将带有动作邮件的邮件发送到预定义的admin@myhost.ltd?我一直在寻找一些宝石来处理异常,并在生产应用程序出现严重问题或者其他重大故障时通知我。
Would like to be notified by email in those cases, Anyone can recommend me a good GEM to handle this ?
想在这些情况下通过电子邮件通知,任何人都可以推荐我一个好的创业板来处理这个问题?
3 个解决方案
#1
2
Maybe you can try this[1]
也许你可以尝试这个[1]
I never used, but can work for you
我从未使用过,但可以为你工作
#2
1
There are some notification tools like Airbrake that can help you with this, but the easy solution is to just add a rescue_from
to your main controller to capture them.
有一些像Airbrake这样的通知工具可以帮助您解决这个问题,但简单的解决方案就是将rescue_from添加到主控制器以捕获它们。
Just be sure that your rescue method doesn't try and rescue its own exceptions.
请确保您的救援方法不会尝试拯救自己的例外情况。
#3
0
For those that do want to go commercial, one with really useful email notifications for exceptions (including daily error summary/aggregate email options) is Raygun - it has a ruby gem available at https://rubygems.org/gems/raygun4ruby.
对于那些想要商业化的人,有一个非常有用的例外电子邮件通知(包括每日错误摘要/聚合电子邮件选项)是Raygun - 它有一个ruby gem,可在https://rubygems.org/gems/raygun4ruby获得。
#1
2
Maybe you can try this[1]
也许你可以尝试这个[1]
I never used, but can work for you
我从未使用过,但可以为你工作
#2
1
There are some notification tools like Airbrake that can help you with this, but the easy solution is to just add a rescue_from
to your main controller to capture them.
有一些像Airbrake这样的通知工具可以帮助您解决这个问题,但简单的解决方案就是将rescue_from添加到主控制器以捕获它们。
Just be sure that your rescue method doesn't try and rescue its own exceptions.
请确保您的救援方法不会尝试拯救自己的例外情况。
#3
0
For those that do want to go commercial, one with really useful email notifications for exceptions (including daily error summary/aggregate email options) is Raygun - it has a ruby gem available at https://rubygems.org/gems/raygun4ruby.
对于那些想要商业化的人,有一个非常有用的例外电子邮件通知(包括每日错误摘要/聚合电子邮件选项)是Raygun - 它有一个ruby gem,可在https://rubygems.org/gems/raygun4ruby获得。