Commit 056776c7
Changed files (3)
config
recipes
tasks
config/recipes/delayed_job.rb
@@ -17,4 +17,9 @@ namespace :delayed_job do
end
after "deploy:#{command}", "delayed_job:#{command}"
end
+
+ desc "tail the delayed jobs logs on an app server (cap staging delayed_job:logs)"
+ task :logs, roles: :app do
+ stream "tail -f #{shared_path}/log/delayed_job.log"
+ end
end
config/recipes/unicorn.rb
@@ -24,4 +24,9 @@ namespace :unicorn do
end
after "deploy:#{command}", "unicorn:#{command}"
end
+
+ desc "tail the logs on an app server (cap staging unicorn:logs)"
+ task :logs, roles: :app do
+ stream "tail -f #{shared_path}/log/unicorn.log"
+ end
end
config/tasks/utility.rb
@@ -1,4 +1,4 @@
-desc "tail the logs on an app server (cap qa logs)"
+desc "tail the logs on an app server (cap staging logs)"
task :logs, roles: :app do
stream "tail -f #{shared_path}/log/#{rails_env}.log"
end