Enabling Rake/Capistrano task tracing from within Ruby
We're using Capistrano for deployment, and Capistrano v3 does not display the names of the tasks being executed, which v2 did. It is possible to see the task by passing the -t
parameter for every deployment, but you can also permanently enable tracing from within your Rakefile/Capfile, like this:
Rake.application.options.trace = true
Rake.application.options.backtrace = true
For all available options, check out application.rb, especially the standard_rake_options
method.
Written by Lucas
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#