Last Updated: February 25, 2016
·
299
· lcguida

Executing bundler in a Capistrano task

To execute any bundle commands in a Capistrano task:

task :my_task do 
  execute :bundler, "exec rails s"
end

Just make sure you have required capistrano/bundler in your Capfile:

# Capfile 

require 'capistrano/bundler'