Sha256: 3be128eb04a4df6a45a8245f1609f0f78716c1fab1c561ac152db9fd0bced664
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capones_recipes-1.2.4 | lib/capones_recipes/tasks/rails/logs.rb |
capones_recipes-1.2.3 | lib/capones_recipes/tasks/rails/logs.rb |