Logrotate - abletech/easy-deployment GitHub Wiki
Usage
To use the logrotate facility, in your deploy.rb
require "easy/deployment/logrotate"
As part of each deploy, the config file in APP_ROOT/config/STAGE/logrotate.conf
will be copied to /etc/logrotate.d/APPLICATION.conf
The config/STAGE/logrotate.conf
is created as part of the easy-deployment generator to install, and when setting up new stages from this template. Feel free to modify the generated config file in your source code as required.
Requirements
You must have the logrotate
package installed on your server, and the /etc/logrotate.d/
directory must be writeable by your deploy user.