Capistrano does not have out-of-the-box support for installing gems on your servers. You may not need this if you are packing them, but some of us would like to run the equivalent of ‘rake gems:install’. To do this in capistrano, add the following to your deploy.rb file:
namespace :gems do desc "Install gems" task :install, :roles => :app do run "cd #{current_release} && #{sudo} rake RAILS_ENV=#{rails_env} gems:install" end end
