Capistrano是否需要加入Gemfile的开发小组? [英] Does Capistrano need to be in the development group in the Gemfile?
问题描述
在rails Gemfile中, gem'capistrano'
需要位于:development
组内,否则这里把它放在一个任意组里面的任何好处,比如:tools
?
In a rails Gemfile, does gem 'capistrano'
need to be inside the :development
group or this there any advantage in putting it inside an arbitrary group like :tools
?
推荐答案
简单地说,不,它并不是需要的,但它对于最佳实践的好处并保持您的gemsets整洁。做这件事的最好方法是开放式的辩论,但基本上只要Capistrano在你工作的环境中对你有用,它与哪些组或哪些组没关系并不重要,尽管我可以看到由于:development
将干净利落地排除在生产之外,因此使用任意:tools
神奇地在第一位。
Simply put, no, it doesn't need to be, but it's good for the sake of best practices and keeping your gemsets uncluttered. The best way to do that is open for debate, but basically as long as Capistrano is available to you in the environment you're working in, it doesn't matter what groups it is or isn't associated with, though I can see little to no advantage of using an arbitrary :tools
group since :development
will exclude it in production cleanly and "auto-magically" in the first place.
这篇关于Capistrano是否需要加入Gemfile的开发小组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!