Skip to content

Instantly share code, notes, and snippets.

@Rykian
Created May 23, 2013 15:13
Show Gist options
  • Save Rykian/5636812 to your computer and use it in GitHub Desktop.
Save Rykian/5636812 to your computer and use it in GitHub Desktop.
# http://darrinholst.com/post/18231749247
desc "tail log files"
task :tail, :roles => :app do
run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data|
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