我第一次尝试将应用程序部署到heroku,我收到以下错误。 heroku上的gem列表包括这个版本的bson gem,我的gemfile在顶部包含source 'http://rubygems.org'
。任何人都可以建议为什么没有找到宝石?
-----> 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
答案 0 :(得分:2)
看起来Ruby的BSON的1.4.1版本被猛烈抨击 - 与Heroku无关。
答案 1 :(得分:1)
约翰的回答是线索 -
gem 'mongoid', '= 2.3.0'
gem 'bson', '= 1.4.0'
gem 'bson_ext', '= 1.4.0'
适合我