capistrano / rails

Official Ruby on Rails specific tasks for Capistrano
http://www.capistranorb.com/
MIT License
871 stars 269 forks source link

Recommend `require: false` in Gemfile #219

Closed mattbrictson closed 6 years ago

mattbrictson commented 6 years ago

Capistrano gems shouldn't be loaded within a Rails (or any) app. They are intended to be used by the cap command, not within Rails itself. At best, require: true (the default) is unnecessary; at worst, it can cause conflicts as encountered here:

https://stackoverflow.com/q/48493332/4625365

Update our docs to recommend require: false just to be safe.

Related: https://github.com/capistrano/capistrano/pull/1964