将我的Rails推送到Openshift之后我得到错误:"在任何来源中都找不到rake-10.5.0"

时间:2016-03-11 21:45:20

标签: ruby-on-rails ruby openshift

我正在尝试使用Mongo设置我的Rails应用。 按照高级部分here

中的说明设置代码

我将镜像源添加到Gemfile中,就像这样

ruby "2.0.0"

source 'http://mirror1.prod.rhcloud.com/mirror/ruby/'
source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
...

和Gemfile.lock

GEM
  remote: http://mirror1.prod.rhcloud.com/mirror/ruby/
  remote: https://rubygems.org/
  specs:
    actionmailer (4.2.5)

我试图推送代码并获得:

remote: /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find rake-10.5.0 in any of the sources (Bundler::GemNotFound)
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
remote:     from /opt/rh/ror40/root/usr/share/gems/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `<top (required)>'
remote:     from /opt/rh/ruby200/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
remote:     from /opt/rh/ruby200/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
remote: Compilation of assets is disabled or assets not detected.

1 个答案:

答案 0 :(得分:0)

我删除了镜像源并删除了Puma。 然后遇到You have already activated rack 1.5.2, but your Gemfile requires rack 1.6.4. Using bundle exec may solve this. (Gem::LoadError)并按照说明here