Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个 Iron.IO 仅限 Ruby 的应用程序,作为他们新的 docker 工作流程的一部分,我需要运行 bundler 将捆绑的 gem 构建到本地的 ./bundle 中。但是,它构建了所有的 gem,包括 group 'development' 和 group 'test' gem。这是浪费的数据,所以我希望能够只对我真正需要的宝石进行干净的构建。
有没有办法告诉 bundler 只构建非开发、非测试的 gem?
bundle install --without development test