标签:guide method post gem article conf file err net
# application.rb config.exceptions_app = ->(env) { ExceptionController.action(:show).call(env) } config.action_dispatch.rescue_responses["ActionController::RoutingError"] = :not_found config.action_dispatch.rescue_responses["ActionController::BadRequest"] = :bad_request
#异常邮件通知 config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.163.com", :port => 25, :domain => "163.com", :authentication => :login, :user_name => "exceptionnotifier@163.com", :password => "******" } config.middleware.use ExceptionNotifier, :email_prefix => "[fgcc程序发生异常]", :sender_address => %{"异常通知" <ExceptionNotifier@163.com>}, :exception_recipients => %w{menxu@funguide.com.cn}
# Gemfile # Slack api 封装 gem 'slack-notifier' # 异常监控 gem 'exception_notification'
profiler
rubocop
标签:guide method post gem article conf file err net
原文地址:http://www.cnblogs.com/mfmdaoyou/p/7105640.html