繁体   English   中英

Ruby(机架)应用无法启动

[英]Ruby (Rack) App could not be started

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

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

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和依赖项。

暂无
暂无

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

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