2011-11-05 158 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下的寶石 –