- Add remote_syslog to your Gemfile
- Add
papertrail.rake
tolib/tasks
- Add
remote_syslog.yml
toconfig/
- Add
before_restart.rb
todeploy/
- Set the
PAPERTRAIL_PORT
ENV var to the one provided by Papertrail for your system
Inspiration from Scott W. Bradley
Two fixes I'd suggest, line #6:
turns out to be a better way to check whether the process is actually running. And line #20:
should be used to "properly" verify papertrail's status