Sha256: 1cf1555be98a315ae14c325d7851df4994d4d1b742eef7cbfa420e2f6a1b1ab8

Contents?: true

Size: 406 Bytes

Versions: 16

Compression:

Stored size: 406 Bytes

Contents

Capistrano::Configuration.instance.load do
  desc "Watch the log on the application server."
  task :watch_logs, :roles => :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

16 entries across 16 versions & 1 rubygems

Version Path
capones_recipes-1.20.1 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.20.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.19.1 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.19.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.18.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.17.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.16.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.5 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.4 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.3 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.2 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.1 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.15.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.14.1 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.14.0 lib/capones_recipes/tasks/rails/logs.rb
capones_recipes-1.13.4 lib/capones_recipes/tasks/rails/logs.rb