SX cap production setup files

This commit is contained in:
Min Zeya Phyo
2019-10-25 12:33:21 +06:30
parent b931ad709d
commit 0be67f4f12
10 changed files with 182 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
namespace :logs do
task :tail, :file do |t, args|
if args[:file]
on roles(:app) do
execute "tail -f #{shared_path}/log/#{args[:file]}.log"
end
else
puts "please specify a logfile e.g: 'rake logs:tail[logfile]"
puts "will tail 'shared_path/log/logfile.log'"
puts "remember if you use zsh you'll need to format it as:"
puts "rake 'logs:tail[logfile]' (single quotes)"
end
end
end