It's a callback to sentry application after every deployment you have.
please check the reference
Add this line to your application's Gemfile:
gem 'capistrano-sentry', github: '[email protected]:resumecompanion/capistrano-sentry.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-sentry
You need to setup the organization
, projects
and sha version
you want to append after the branch name
# in Capfile
require 'capistrano/sentry'
This apply the hook sentry:notify_deployment
after deploy:publishing
You need to configure the projects name in different environment.
# In config/deploy/staging.rb
set :sentry_endpoint, 'https://sentry.io/api/0/organizations/'
set :sentry_projects, ['your first project', 'your second project']
set :sentry_organization, 'your organization name'
set :sentry_token, 'the token you get from last section'
set :branch_tag, `git describe --tags`
# current version name will append after your branch name
set :current_version, `git rev-parse HEAD`.strip
Please set the same setting in your config/deploy/production.rb
The current_version
help you differ diffferent deployment in the staging enviornement
like
release/2.0-sha1
release/2.0-sha2
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano-sentry. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Capistrano::Sentry project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.