Created
July 7, 2013 09:33
-
-
Save itamar/5942928 to your computer and use it in GitHub Desktop.
Tail production log file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desc "tail production log files" | |
| task :tail_p, :roles => :app do | |
| run "tail -f #{shared_path}/log/production.log" do |channel, stream, data| | |
| puts # for an extra line break before the host name | |
| puts "#{channel[:host]}: #{data}" | |
| break if stream == :err | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment