2012-05-12 10 views
0

を開始することができませんでした私はコーディングやサーバーの設定に新たなんだ、などルビー(ラック)アプリケーションは

私は自分のサイト上で、以下の受信と任意のコードを変更しませんでしたし、私には何の問題を抱えていないのです私のサイトは読み込まれていません。理由は何でしょうか。これをどうやって解決できますか?あなたがアクセス許可の問題を取得する場合あなたが

bundle install 

を必要とするすべての宝石を持っていない可能性があります

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. 
+1

問題は 'config/initializers/exception_notification.rb'にあります。そのファイルの内容を投稿して見てください。 – matt

答えて

0

は(あなたのレールのアプリのディレクトリにある)

sudo bundle install 

を試してみてください。これは、あなたのレールアプリに必要なすべての宝石と依存関係をインストールします。

+0

手作業でレールを更新する必要はなく、バンドラを使用している場合はアプリの動作を変更しません。 –

+0

彼はコアの宝石が欠けているように見えますか? – Akshat

+1

それは問題ではない、バンドラーは正しいレールの宝石をインストールします。 bundlerがインストールされている限り、 'bundle install'を実行するだけですべてのgemが確実にインストールされます。 –