2011-11-05 154 views
1

我想第一次将应用程序部署到heroku,并且出现以下错误。 heroku上的宝石列表包括这个版本的bson宝石,我的宝石文件包括顶部的source 'http://rubygems.org'。任何人都可以提出为什么没有找到宝石?heroku依赖失败

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Detected Rails is not set to serve static_assets 
     Installing rails3_serve_static_assets... done 
-----> Configure Rails 3 to disable x-sendfile 
     Installing rails3_disable_x_sendfile... done 
-----> Configure Rails to log to stdout 
     Installing rails_log_stdout... done 
-----> Gemfile detected, running Bundler version 1.0.7 
     Unresolved dependencies detected; Installing... 
     Using --without development:test 
     Fetching source index for http://rubygems.org/ 
     Could not find bson-1.4.1 in any of the sources 
     FAILED: http://devcenter.heroku.com/articles/bundler 
!  Heroku push rejected, failed to install gems via Bundler 

回答

2

看起来像是1.4.1版本的BSON for Ruby被抽出 - 与Heroku无关。

http://rubygems.org/gems/bson/versions

+0

感谢 - 这回答了这个问题 - 但提出了另外一个,我会问单独 – chrispanda

+0

@chrispanda:拒绝你编辑,因为你应该添加它作为其他答案 – CharlesB

1

约翰的回答是线索 -

gem 'mongoid', '= 2.3.0' 
    gem 'bson', '= 1.4.0' 
    gem 'bson_ext', '= 1.4.0' 

作品对我来说

+0

我有同样的确切问题,但我使用的是mongoid 2.2.4。我没有运气就坐在bson&bson_ext 1.3.1上。每当我推到Heroku时,我都会得到同样的错误。任何想法?我删除了vendor/cache中的所有gem,只是为了确保删除了Gemfile.lock。还删除了.rvm/gems/ruby​​-1.9.2下的宝石 –