我尝试在托管服务器上部署。但是当我转到我的域时,我看到 phusion 乘客错误消息:
Could not find gem 'guard-rspec (= 2.5.0) ruby' in the gems available on this machine. (Bundler::GemNotFound)
所以我这样做:
$ gem install rspec-rails -v 2.13.1
然后我得到:
Could not find gem 'rspec-rails (= 2.13.1) ruby' in the gems available on this machine. (Bundler::GemNotFound)
所以我再做一次:
$ gem install guard-rspec -v 2.5.0
最后我明白了:
Bundler 找不到 gem "rspec-mocks" 的兼容版本:在 Gemfile 中:guard-rspec (= 2.5.0) ruby 依赖于 rspec-mocks (~> 2.14.0) ruby
rspec-rails (= 2.13.1) ruby depends on
rspec-mocks (2.13.1)
(捆绑器::版本冲突)
我必须从我的 Gemfile 中删除其中一个吗?