0

Rails 2.3.5 からアップグレードした後、Rails 2.3.15 アプリのスクリプト/コンソールを起動しようとすると、次のエラーが発生します。これは、問題はバンドラー 1.2.1 がラック 1.1.3 と互換性がないことにあるということですか? どんな助けでも大歓迎です。

usr/lib/ruby/gems/1.8/gems/bundler-1.2.1/lib/bundler/rubygems_integration.rb:157:in gem': can't activate rack (~> 1.0.1), already activated rack-1.1.3. Make sure all dependencies are added to Gemfile. (Gem::LoadError) from /home/developer/bigpink/vendor/rails/actionpack/lib/action_controller.rb:34 from /home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:inrequire' from /home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies .rb:156:/home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:156: require' from /home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:inrequire からの new_constants_in require' from /home/developer/bigpink/vendor/rails/railties/lib/commands/server.rb:2 from script/server:3:in' で script/server:3 から

4

2 に答える 2

0

私の場合、次の手順で問題を解決しました。

  1. ディレクトリを削除しました$PROJECT_ROOT/vendor/rails
  2. RAILS_GEM_VERSIONで変更config/environment.rb
于 2013-01-11T06:16:00.937 に答える
-1

このプロセスを使用して、Heroku アプリで Rails を 3.2.11 にアップグレードしました (ここで報告) 。

stop – your Ruby on Rails (RoR) server
edit  – appropriate line in gem file to read [one of]:
    gem ‘rails’, ’3.2.11′
    gem ‘rails’, ’3.1.10′
    gem ‘rails’, ’3.0.19′
    gem ‘rails’, ’2.3.15′

run – gem update
run – bundle update
run - bundle install

test – rspec # or test-driven dev’t framework of choice
launch – rails s
test – # interact with Rails server & explore if all is well

run – git add .
run – git commit -a -m “upgrade Rails server to ver. [x.y.z]“
run - git push # to github or rcs of choice
run - git push heroku # or to deployment server of choice
于 2013-01-11T16:23:50.063 に答える