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'
Written by Leandro Guida
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#