Does Capistrano need to be in the development group in the Gemfile?

試著忘記壹切 提交于 2019-12-23 09:08:01

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/15661159/does-capistrano-need-to-be-in-the-development-group-in-the-gemfile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!