- Add remote_syslog to your Gemfile
- Add
papertrail.raketolib/tasks - Add
remote_syslog.ymltoconfig/ - Add
before_restart.rbtodeploy/ - Set the
PAPERTRAIL_PORTENV 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