Mina-Tail
Tasks for tailing Rails log files in a Mina deployment environment
Installation
Add this line to your application's Gemfile:
gem 'mina-tail', require: falseAnd then execute:
$ bundleOr install it yourself as:
$ gem install mina-tailFor support of Mina <1.0, stick with version 0.0.3 of this gem.
Require mina/tail in your config/deploy.rb:
require 'mina/tail'
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
...
task setup: :environment do
...
endUsage
$ mina production tail:liveTails log/production.log live.
$ mina production tail:live file=unicorn.err.logTails log/unicorn.err.log live.
$ mina production tail:lastReturns the last 2000 lines of the log/production.log
$ mina production tail:last lines=20Returns the last 20 lines of the log/production.log
$ mina production tail:last file=unicorn.err.log lines=20Returns the last 20 lines of the log/unicorn.err.log
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request