JetThoughts

Show log file from remote server

December 26th 2009

Create simple capistrano task for showing current log file from remote server so simple. Add next lines to Capfile or config/deploy.rb (if you are using rails)

1 desc
2 task :show_log do
3   run "tail -f #{current_path}/log/#{rails_env}.log"
4 end

Run this task:

  # cap show_log

And you see log file in real time.

So it is universal method work for multistage capistrano extension too.

  # cap production show_log
blog comments powered by Disqus

Powered by Rackspace Cloud Computing