Sha256: d14ba5578a65d9be2a362f35ed149fefb929b69d43d5058adbcb2af7844ceb9e
Contents?: true
Size: 779 Bytes
Versions: 16
Compression:
Stored size: 779 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :slice do desc "Tail the Rails logs for your environment" task :tail_environment_logs, :roles => :app do run "tail -f #{shared_path}/log/#{rails_env}.log" do |channel, stream, data| puts # for an extra line break before the host name puts "#{channel[:server]} -> #{data}" break if stream == :err end end desc "Tail the Mongrel logs for your environment" task :tail_mongrel_logs, :roles => :app do run "tail -f #{shared_path}/log/mongrel*.log" do |channel, stream, data| puts # for an extra line break before the host name puts "#{channel[:server]} -> #{data}" break if stream == :err end end end end
Version data entries
16 entries across 16 versions & 3 rubygems