0.0
No commit activity in last 3 years
No release in over 3 years
Logrotate features to use with mina
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 10.0

Runtime

~> 0
 Project Readme

Mina Logrotate

Inspired on mina-nginx gem, provides Mina tasks to work with Logrotate

This gem provides several mina tasks (you can check using mina tasks):

mina logrotate:apply             # Run logrotate into symlink file
mina logrotate:link              # Symlinking logrotate config file
mina logrotate:parse             # Parse logrotate configuration file and upload it to the server
mina logrotate:setup             # Setup logrotate

Installation

Add this line to your application's Gemfile:

gem 'mina-logrotate', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install mina-logrotate

Usage

Add this to your config/deploy.rb file:

require 'mina/logrotate'

Make sure the following settings are set in your config/deploy.rb:

  • application - application name
  • deploy_to - deployment path

Launch new tasks:

$ mina logrotate:setup
$ mina logrotate:link

There is a default template file to use logrotate with all files inside shared/log but it's allowed define the template file with

private

def logrotate_template
  '/path/to/my/template/file'
end

Contributing

  1. Fork it ( http://github.com/hbin/mina-logrotate/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request