Monitorize your production, sidekiq and puma logs throught capistrano without connect to server and find them manually.
For now you can use it when your log files located in release_path
Add this line to your application's Gemfile:
gem 'capistrano_logger'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano_logger
- Add
require 'capistrano/capistrano_logger'
in yourCapfile
. - Run whatever your task:
cap production rails:env_log
Production or staging log
cap production rails:env_log
or
cap staging rails:env_log
For sidekiq Log:
cap production rails:sidekiq_log
For puma error Log:
cap production rails:puma_error_log
For puma error Log:
cap production rails:puma_access_log
- Fork it ( https://github.com/sadikay/capistrano-logger/fork )
- 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 a new Pull Request