6

在 Rails Gemfile 中,是否gem 'capistrano'需要在:development组内,或者将其放在任意组内有什么好处,比如:tools

4

1 回答 1

7

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.

于 2013-03-27T14:46:19.117 回答