代码之家  ›  专栏  ›  技术社区  ›  Mike Sutton

Rails部署找不到正确的gem版本

  •  0
  • Mike Sutton  · 技术社区  · 16 年前

    我正在使用capistrano进行Rails应用程序的首次部署。安装中止,出现以下错误:

    *** [err :: plantality.com] RubyGem version error: will_paginate(2.2.2 not ~> 2.3.11)
    

    但我已经向供应商/gems出售了2.3.11,并且在我的environment.rb中有以下内容(谷歌告诉我这是正确的做法):

    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'
    
    2 回复  |  直到 16 年前
        1
  •  0
  •   Leventix    16 年前

    ~> 从…起 :version

        2
  •  0
  •   Mike Sutton    16 年前