开发者

Rails deployment can't find correct gem version

开发者 https://www.devze.com 2022-12-19 05:41 出处:网络
I\'m doing my first deployment of a Rails app and using capistrano. The installation aborts with the following error:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消