Ruby on rails 无法启动Ruby(Rack)应用程序

Ruby on rails 无法启动Ruby(Rack)应用程序,ruby-on-rails,ruby,ruby-on-rails-3.1,Ruby On Rails,Ruby,Ruby On Rails 3.1,我不熟悉编码和设置服务器等 我在我的网站上收到了以下信息,没有更改任何代码,我的托管网站没有问题,但我的网站没有加载。原因可能是什么?我该如何解决 Ruby (Rack) application could not be started These are the possible causes: There may be a syntax error in the application's code. Please check for such errors and fix them. A

我不熟悉编码和设置服务器等

我在我的网站上收到了以下信息,没有更改任何代码,我的托管网站没有问题,但我的网站没有加载。原因可能是什么?我该如何解决

Ruby (Rack) application could not be started
These are the possible causes:
There may be a syntax error in the application's code. Please check for such errors and fix them.
A required library may not installed. Please install all libraries that this application requires.
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
undefined method `[]' for false:FalseClass
Exception class:
NoMethodError
Application root:
/home/ubuntu/nteeq/current
Backtrace:
#   File    Line    Location
0   /home/ubuntu/nteeq/releases/20120430040248/config/initializers/exception_notification.rb    6   
1   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb    235 in `load'
2   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb    235 in `load'
3   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb    227 in `load_dependency'
4   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb    235 in `load'
5   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/engine.rb    201 
6   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/engine.rb    200 in `each'
7   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/engine.rb    200 
8   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb 25  in `instance_exec'
9   /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb 25  in `run'
10  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb 50  in `run_initializers'
11  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb 49  in `each'
12  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb 49  in `run_initializers'
13  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/application.rb   134 in `initialize!'
14  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/application.rb   77  in `send'
15  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/railties-3.0.3/lib/rails/application.rb   77  in `method_missing'
16  /home/ubuntu/nteeq/releases/20120430040248/config/environment.rb    5   
17  config.ru   3   in `require'
18  config.ru   3   
19  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/builder.rb    46  in `instance_eval'
20  /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.2.3/lib/rack/builder.rb    46  in `initialize'
21  config.ru   1   in `new'
22  config.ru   1   
Powered by Phusion Passenger, mod_rails / mod_rack for Apache.

你可能没有你需要的所有宝石

bundle install
如果您遇到权限问题,请尝试

sudo bundle install

在rails应用程序的目录中。这将为您的rails应用程序安装所有必要的gem和依赖项。

手动更新rails gem是不必要的,如果使用bundler,也不会改变应用程序的行为。但看起来他缺少核心gem?没关系,bundler将安装正确的rails gem。只要安装了bundler,运行bundle install就足以确保安装了所有GEM。使用sudo进行bundle安装可能会导致后续问题。这应该是不必要的,如果是,那么环境还有其他问题。问题似乎出在config/initializers/exception_notification.rb中。发布该文件的内容,以便我们可以查看。