Release tracking extracts information regarding the current revision of your repository and sends it to Opbeat when you deploy new code to Heroku.
- A Heroku project
- The Heroku toolbelt
Follow these simple steps to add release tracking to your Heroku project.
You can find the webhook URL on Opbeat in your app settings.
Note: Make sure the “Deployment method” of your app is set to “Heroku”.
$ heroku addons:add deployhooks:http --url=https://opbeat.com/integration/deployment/heroku/<organization-id>/<app-id>/<secret-heroku-token>/
The webhook URL for your app can be found in the app settings on Opbeat.
$ git push heroku master
Opbeat integrates with Git. For Git integration to be useful you need to push to Git as well as Heroku. When you have created a repository for your Heroku app:
$ git remote add origin <ssh url to git repository> $ git push origin master
If you want to know more about deploy hooks, you can read Heroku’s article on deploy hooks.