Sha256: c344e8911d419bf0c496cb366f77112e97edde8614e668311db5b5181bf3f284
Contents?: true
Size: 784 Bytes
Versions: 33
Compression:
Stored size: 784 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :slice do desc "Tail the Rails production log for this environment" task :tail_production_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 this 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
33 entries across 33 versions & 5 rubygems