Sha256: f994ef8efca11cf33e1412bb9350f7e834d9978520a1e3154051ee24da2b82c8
Contents?: true
Size: 508 Bytes
Versions: 13
Compression:
Stored size: 508 Bytes
Contents
require 'capistrano' require 'kapify/base' Capistrano::Configuration.instance.load do namespace :kapify do desc "Setup logs rotation for application logs" task :logrotate, roles: [:web, :app] do kapify_template("logrotate", "logrotate.erb", "/tmp/#{application}_logrotate") run "#{sudo} mv /tmp/#{application}_logrotate /etc/logrotate.d/#{application}" run "#{sudo} chown root:root /etc/logrotate.d/#{application}" end after "deploy:setup", "kapify:logrotate" end end
Version data entries
13 entries across 13 versions & 1 rubygems