To install the Templarbit Agent with Heroku, you need to add a Buildpack, update the application settings and update the Procfile.
The first step is to add the Templarbit Agent Buildpack to your application.
heroku buildpacks:add https://github.com/templarbit/agent-v5-heroku-buildpack
The Templarbit Agent needs the Property ID and the Secret Key to connect to the Templarbit Cloud Engine. You can find your Property Credentials at app.templarbit.com. Follow these steps to set Heroku configuration environment variables:
heroku config:set TB_PROPERTY_ID=xxx heroku config:set TB_SECRET_KEY=xxx
You can also manually set and update these variables in your Heroku Dashboard under the Settings tab.
The last step is updating your Heroku Profile. Prefix your web dyno with
templarbit, for example:
web: templarbit bundle exec rails server
The next time Heroku deploys your application, the Templarbit Agent will be installed and your application will be protected by Templarbit.
The Templarbit Agent will update itself. To disable auto updates set the Heroku ENV variable
You can remove the Templarbit Agent from your application by removing the Templarbit Agent Buildpack. Please remember to re-deploy your application.