I am running rake tasks on the server using a snippet like the following in the deploy.rb of a rails app.
desc 'Invoke rake task on the server'
task :invoke do
fail 'no task provided' unless ENV['task']
on roles(:app) do
within release_path do
with rails_env: fetch(:rails_env) do
execute :rake, ENV['task']
end
end
end
end
The rake task runs ok but I would like to see the output from the rake task displayed in the console where I run the capistrano task.
puts commands in the rake task do not appear.