Knowledge Base: Deploy Tracking

Hoptoad has the ability to track your deploys.

Whenever you deploy a project to a particular RAILS_ENV, Hoptoad will record that fact, and mark all notices for that project in that environment as being resolved. This ensures that you get notified if you have any exceptions that are still occurring after the deploy.

All existing notices for a project will be resolved in bulk using this feature.

Installation

Deploy tracking requires the latest hoptoad notifier. Be sure you have the latest version installed from the github project. In addition, deploy tracking is only available for accounts on paid plans.

Usage

Once installed, your application will have a new rake task, which you call as rake hoptoad:deploy TO=production. But if you use capistrano, you should never have to run that command by hand. The Hoptoad notifier also includes a capistrano recipe that runs after deploy:cleanup which automatically triggers that rake task.

You can see how many deploys you have for a project under the projects page, and you can view those individual deploys, plus all errors that happened while that deploy was active by drilling down further.

Deploy tracking

Deploy tracking also allows you to make use of GitHub integration

Troubleshooting

If the notification of the deploy is not happening automatically when you do a capistrano deploy:

  • Ensure that your plan supports deploys. Which plans support depoys?
  • Ensure that your Capfile has the following in it Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }