-
Notifications
You must be signed in to change notification settings - Fork 62
Bundler
Currently the bundler:bundle_gems
recipe runs as a after hook of the deploy:symlink_configs
task. You will see in your deploy.rb file a line like:
after "deploy:update_code", "deploy:symlink_configs"
There must be a "deploy:symlink_configs" task in your deploy.rb
file or else the bundler:bundle_gems
task will not run.
Read the code of the recipe.
Given that you are using a Shared File system for multiple Application servers, and you do not need to have bundler install gems more than once. You'll need to configure your deploy.rb file like so:
deploy.rb file example
this is where it goes...
If you managed your Gemfile with specific groups and would like to not have it install those groups on deployment, please add this option to your deploy.rb
file:
set :bundle_without, "test deployment ci"
This would overwrite the default which would be test deployment
and then run this during the deploy:
bundle install --without test deployment ci