Rails deployment can't find correct gem version
I'm doing my first deployment of a Rails app and using capistrano. The installation aborts with the following error:
*** [err :: plantality.com] RubyGem version error: will_paginate(2.2.2 not ~> 2.3.11)
but I've already vendored 2.3.11 to vendor/gems and have the following in my environment.rb (which google tells me开发者_开发技巧 is the correct thing to do):
config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
File.directory?(lib = "#{dir}/lib") ? lib : dir
end
config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'
Remove ~>
from :version
Sorry, found the problem. I had made some changes to the environment.rb file and failed to commit them to SVN.
精彩评论