Heroku

If you would like to trigger Ghost Inspector tests after a deployment to Heroku, you can do this via the Deploy Hooks add-on. Simply add a hook pointing to our API.

In the example below, you will need to swap in your own values for [suite-id] and [api-key].

$ heroku addons:add deployhooks:http --url=https://api.ghostinspector.com/v1/suites/[suite-id]/execute/?apiKey=[api-key]&immediate=1
Note: This code assumes that you want to execute a suite after your project has been built. For other options, please see our API.