Adding Papertrail to Cloud66

  1. Put the .cloud66 directory into the root of your project
  2. Update the variables in papertrail.sh to match your Papertrail configuration (as shown on Log Destinations).
  3. Add/modify any logs you would like to track in papertrail.sh
  4. Update the initd_url line in papertrail.sh to the most recent version.
  5. Deploy

If you're deploying a new stack, you're done.

Installation on existing stacks

Because the deploy_hook is only triggered on initial build, you'll have to run the commands from deploy_hooks.yml manually.

After deploying with the .cloud66 folder, ssh into your machines and run these commands:

sudo mv "$RAILS_STACK_PATH/.cloud66/papertrail.sh" /tmp/papertrail.sh
sudo bash /tmp/papertrail.sh $STACK_BASE

=====

More information available on papertrail support