在从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:in
require'
来自/home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require'
from /home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
new_constants_in'
来自/home/developer/bigpink/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in require'
from /home/developer/bigpink/vendor/rails/railties/lib/commands/server.rb:2
from script/server:3:in
require'
来自脚本/服务器:3
答案 0 :(得分:0)
就我而言,问题通过以下步骤解决:
$PROJECT_ROOT/vendor/rails
RAILS_GEM_VERSION
config/environment.rb
醇>
答案 1 :(得分:-1)
我们使用此过程在我们的Heroku应用程序上将Rails升级到3.2.11(如报告所述here)
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