Sha256: 8d19318382c256588d15f871dd26f80e729c42298e611f16402787d7cbc986c5
Contents?: true
Size: 1.38 KB
Versions: 8
Compression:
Stored size: 1.38 KB
Contents
###################################################################### # LOG TASKS # ###################################################################### Capistrano::Configuration.instance(:must_exist).load do namespace :log do desc <<-DESC Begins tailing the Rails log file within the specified environment. * Pass lines=<number> to give you a bigger look back at what has recently happened. ie: cap staging log lines=50 DESC task :default, :roles => :app do log.all.tail end namespace :application do task :fetch, :roles => :app do fetch_log(rails_log_files) end task :tail, :roles => :app do tail_log(rails_log_files) end end namespace :app_server do task :fetch, :roles => :app do fetch_log(app_server_log_files) end task :tail, :roles => :app do tail_log(app_server_log_files) end end namespace :web_server do task :fetch, :roles => :web do fetch_log(web_server_log_files) end task :tail, :roles => :web do tail_log(web_server_log_files) end end namespace :all do task :fetch, :roles => [:app, :web] do fetch_log(log_files) end task :tail, :roles => [:app, :web] do tail_log(log_files) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems