lib/eycap/recipes/nginx.rb in engineyard-eycap-0.4.12 vs lib/eycap/recipes/nginx.rb in engineyard-eycap-0.4.14

- old
+ new

@@ -29,17 +29,9 @@ desc "Test the Nginx config on the app slices." task :configtest , :roles => :app do sudo "/etc/init.d/nginx configtest" end - desc "Tail the nginx access logs for this application" - task :tail, :roles => :app do - run "tail -f /var/log/engineyard/nginx/#{application}.access.log" do |channel, stream, data| - puts "#{channel[:server]}: #{data}" unless data =~ /^10\.[01]\.0/ # skips lb pull pages - break if stream == :err - end - end - desc "Tail the nginx error logs on the app slices" task :tail_error, :roles => :app do run "tail -f /var/log/engineyard/nginx/error.log" do |channel, stream, data| puts "#{channel[:server]}: #{data}" unless data =~ /^10\.[01]\.0/ # skips lb pull pages break if stream == :err \ No newline at end of file