0

我是编码和设置服务器等的新手。

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

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.
4

1 回答 1

0

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

bundle install

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

sudo bundle install

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

于 2012-05-12T00:16:25.223 回答