简体   繁体   English

使用Ruby Bundler只能构建未开发,未经测试的宝石吗?

[英]Use Ruby Bundler to build only non-development, non-test gems?

I'm building an Iron.IO Ruby-only application and as part of their new docker workflow, I need to run bundler to build the bundled gems into ./bundle locally. 我正在构建一个仅适用于Iron.IO Ruby的应用程序,作为其新docker工作流程的一部分,我需要运行bundler才能将捆绑的gems本地构建到./bundle中。 However, it builds all the gems, including the group 'development' and group 'test' gems. 但是,它将构建所有宝石,包括“开发”组和“测试”组的宝石。 It's wasted data so I'd like to be able to do a clean build of only the gems I actually need. 这是浪费的数据,所以我希望能够仅对我实际需要的宝石进行干净的构建。

Is there a way to tell bundler to only build the non-dev, non-test gems? 有没有办法告诉捆绑程序仅构建非开发,非测试的gem?

bundle install --without development test

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM