Sha256: 392e52dbcaaf61af4b0ee98f7aac527956fcc921bf0301ce838b43cf9e09a09c
Contents?: true
Size: 407 Bytes
Versions: 20
Compression:
Stored size: 407 Bytes
Contents
Capistrano::Configuration.instance.load do desc "Watch the log on the application server." task :watch_logs, :role => [:app] do log_file = "#{shared_path}/log/#{rails_env}.log" run "tail -f #{log_file}" do |channel, stream, data| puts data if stream == :out if stream == :err puts "[Error: #{channel[:host]}->#{rails_env}] #{data}" break end end end end
Version data entries
20 entries across 20 versions & 1 rubygems