When deploying with Capistrano I want to use installed gems instead of installing them into vendor
.
Capistrano seems to ignore .gemrc
& .bashrc
, so I tried this in deploy.rb
:
require 'bundler/capistrano'
set :default_environment, {
'GEM_HOME' => '/some_path/.gem',
'GEM_PATH' => '/some_path/.gem',
'BUNDLE_PATH' => '/some_path/.gem'
}
My gems are located in /some_path/.gem/gems
, bin: /some_path/.gem/bin
.