0

運用サーバーで exception_logger プラグインをセットアップしようとしています。開発マシンではすべてが正常に機能しました。prod サーバーで db:migrate をレーキしようとすると、次のエラーが発生します。

rake aborted!
no such file to load -- pagination

私は何が欠けていますか?

4

4 に答える 4

2

Classic Pagination は 2.1 ではサポートされていません - または少なくともデッド ライブラリです

http://workingwithrails.com/railsplugin/5289-classic-pagination

will_paginate を見てください -

http://github.com/mislav/will_paginate/wikis

それはすべてのクールな子供たちが使用しているものです:-)

于 2008-10-11T19:39:47.073 に答える
1

明らかに、エラーはページネーションプラグインに関連しています。つまり、エラーはexception_loggerとはまったく関係がない可能性があります...

rake db:migrate --trace質問に出力を追加してみてください。

于 2008-10-09T17:07:35.397 に答える
0
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- pagination
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `gem_original_require'
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/nfs/c01/h06/mnt/12348/containers/rails/mpg_prod/vendor/plugins/classic_pagination/init.rb:24:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:95:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:91:in `evaluate_init_rb'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin.rb:44:in `load'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:33:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:32:in `each'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/rails/plugin/loader.rb:32:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:283:in `load_plugins'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:138:in `process'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:93:in `send'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/initializer.rb:93:in `run'
/nfs/c01/h06/mnt/12348/containers/rails/mpg_prod/config/environment.rb:13
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `gem_original_require'
/home/12348/data/rubygems/lib/rubygems/custom_require.rb:27:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in `new_constants_in'
/home/12348/data/rubygems/gems/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in `require'
/home/12348/data/rubygems/gems/gems/rails-2.1.0/lib/tasks/misc.rake:3
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:546:in `call'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:541:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:518:in `invoke_prerequisites'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `send'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1183:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:515:in `invoke_prerequisites'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/thread.rb:135:in `synchronize'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
/home/12348/data/rubygems/gems/gems/rake-0.8.1/bin/rake:31
/home/12348/data/rubygems/gems/bin/rake:19:in `load'
/home/12348/data/rubygems/gems/bin/rake:19
于 2008-10-09T17:17:18.387 に答える
-1
  1. environment.rbのロード中にレーキが中止されています。
  2. 実稼働マシンで宣言されている欠落している宝石がないかどうかを確認します。
  3. sudogeminstall」不足しているもの
  4. temimalで「script/console」を発行して、environment.rbが正しく読み込まれることを確認します
于 2008-10-10T03:37:17.963 に答える