namespace :deploy do desc "Shrink and bundle js and css" task :bundle, :roles => :web, :except => { :no_release => true } do run "cd #{current_path}; RAILS_ROOT=#{current_path} rake bundle:all" end end after "deploy:update_code", "deploy:bundle"