我的组织有一些内部宝石,用于自动化测试,但在生产部署中不需要。我正在尝试使用Bundler,在我的Gemfile中用以下方式包装这些宝石:
group :test, :development do
gem 'dashboard_summary'
end
然而,当我运行时:
$ bundle install --without staging development test
我仍然收到
Could not find gem 'dashboard_summary (>= 0) ruby' in the gems available on this machine.
我正在尝试理解为什么Bundler没有忽略我已经告诉它要忽略的那个gem。
Gemfile
。dashboard_summary
可能是其他 gem 的依赖项。 - draxxxeusdashboard_summary
gem 的?如果有多个source
行,你是如何避免在生产环境中无法使用内部存储库而导致的错误? - matt