简体   繁体   English

Ruby on Rails | AirBrake错误

[英]Ruby on Rails | AirBrake Error

Trying to run a project that was provided by a client. 尝试运行客户端提供的项目。

I have the correct versions of Ruby, Gems, Rails, Bundler, Homebrew etc installed. 我安装了正确版本的Ruby,Gems,Rails,Bundler,Homebrew等。

When I run rails server I get the following error in terminal. 当我运行rails server在终端中出现以下错误。

.rvm/gems/ruby-2.2.2/gems/airbrake-ruby-1.0.4/lib/airbrake-ruby.rb:288:in `call_notifier': the 'default' notifier isn't configured (Airbrake::Error)

After much time spent on Google I couldn't find a fix on this. 在Google上花费了很多时间后,我无法找到解决方案。

Here is a screenshot of the whole terminal error message which I get the feeling these other lines could be related. 这是整个终端错误消息的屏幕截图,我觉得这些其他行可能相关。

在此处输入图片说明

It looks like a previous developer may have hardcoded a commit hook in the application, pointing to a file in their local .git folder (and which you don't have). 看起来以前的开发人员可能已经在应用程序中对提交挂钩进行了硬编码,指向其本地.git文件夹中的文件(并且您没有该文件)。

I'd recommend either asking the developer to provide the missing file, create a dummy file in the same place, or removing that line. 我建议要么要求开发人员提供丢失的文件,要么在同一位置创建一个虚拟文件,要么删除该行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM