2012-04-06 14 views
0

herokuガイドとして展開します。私のレールアプリがherokuにデプロイされています

しかし、私は賞賛を使用するときに 'Herokuのは、DBを熊手:移行' の場合、これらのエラーを提示:

Running rake db:migrate attached to terminal... up, run.1 
(in /app) 
rake aborted! 
no such file to load -- test/unit/error 
<internal:lib/rubygems/custom_require>:29:in `require' 
<internal:lib/rubygems/custom_require>:29:in `require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `block in require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/deprecation.rb:224:in `<top (required)>' 
<internal:lib/rubygems/custom_require>:29:in `require' 
<internal:lib/rubygems/custom_require>:29:in `require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `block in require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' 
/app/.gems/gems/activesupport-2.2.2/lib/active_support.rb:37:in `<top (required)>' 
<internal:lib/rubygems/custom_require>:29:in `require' 
<internal:lib/rubygems/custom_require>:29:in `require' 
/app/.gems/gems/rails-2.2.2/lib/tasks/misc.rake:11:in `<top (required)>' 
/app/.gems/gems/rails-2.2.2/lib/tasks/rails.rb:4:in `load' 
/app/.gems/gems/rails-2.2.2/lib/tasks/rails.rb:4:in `block in <top (required)>' 
/app/.gems/gems/rails-2.2.2/lib/tasks/rails.rb:4:in `each' 
/app/.gems/gems/rails-2.2.2/lib/tasks/rails.rb:4:in `<top (required)>' 
<internal:lib/rubygems/custom_require>:29:in `require' 
<internal:lib/rubygems/custom_require>:29:in `require' 
/app/Rakefile:10:in `<top (required)>' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `load' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile' 
/usr/ruby1.9.2/lib/ruby/1.9.1/rake.rb:1991:in `run' 
/usr/ruby1.9.2/bin/rake:31:in `<main>' 
[email protected]:~/work/depot$ rake db:migrate 
(in /home/jason/work/depot) 

私はHerokuの中に私のアプリを訪問し、それがエラーを提示:追加

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

答えて

0

てみてくださいpg gemを運用環境用に作成し、以下のコマンドを実行します。

$ bundle install --without production 

HerokuはPostgreSQLデータベースでは、この方法で使用する必要があります。希望はあなたを助けます。

+0

あなたのシステムにpostgresqlをインストールすることで、 '--without production 'を避けることができます。 – Mab879

関連する問題