Notify Bugsnag of deploys to using Capistrano.
bugsnag-capistrano Ruby gem to your
gem 'bugsnag-capistrano', require: false
Don’t forget to run
bundle install after updating your
To track deploys automatically require
bugsnag-capistrano into your
Capfile and configure your API key in by either:
Setting it in your
require 'bugsnag-capistrano' set :bugsnag_api_key, "your-api-key-here"
Or setting the
BUGSNAG_API_KEY environment variable.
Bugsnag will automatically be notified of deployments made via Capistrano in the configured repository.
If you wish to notify of a deployment manually then call the
cap `your_configuration_here` bugsnag:deploy BUGSNAG_API_KEY='your_api_key_here' ...
All of the following configuration options can be set within the projects
Certain options may also be set using environment variables, as specified.
||Your Bugsnag API key (required)|
||The app version of the code being deployed|
||The source control branch the code is being deployed from|
||The endpoint to deliver the deployment notification to|
||The release stage (e.g. production, staging)|
||The source control revision of the deploying code|
||The repository URL the code is being deployed from|