部署 Rails4.0 + mongoid3.1.4 bundle 出错

Unknow user · July 08, 2013 · Last by yunzifeiyu replied at July 09, 2013 · 2949 hits

Bundler could not find compatible versions for gem "activemodel": In snapshot (Gemfile.lock): activemodel (4.0.0)

In Gemfile: mongoid (~> 3.1.4) ruby depends on activemodel (~> 3.2) ruby

这种情况可以把 activemodel (4.0.0) 降到 3.2 吗?还是有别的处理方式

参考 Ruby China 的 Gemfile https://github.com/ruby-china/ruby-china/blob/master/Gemfile

除了 Mongoid 外还有相关的 *-mongoid gem 要升级,很多都只有 git,未发稳定版。

Unknow user #2 July 08, 2013

#1 楼 @Rei ok,谢谢!不过 git 的速度很慢有办法解决吗?bundle install 后,mongoid 的下载速度只有 2kb/s 左右

git 慢可以先下回来到本地,然后用修改 Gemfilegem GEM_NAME, :path => 'path/to/git_repo',再 bundle install

Unknow user #4 July 09, 2013

#3 楼 @ywjno 恩,谢谢。有时间得学习一下 Git 的使用了

You need to Sign in before reply, if you don't have an account, please Sign up first.