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.