Capistrano
note: This guide is now considered legacy and use of the new API is recommended. A high level guide to migrate to the new API can be found here.
Get an Auth Token
Generate an External Auth Token for your build server to use from your Raygun User Settings page
Install the Gem
Install the capistrano-raygun-deployment gem
gem install capistrano-raygun-deploymentOr if you are using Bundler
echo "gem 'capistrano-raygun-deployment'" >> Gemfile
bundle installUpdate code
Add the following to your Capfile
require 'capistrano/raygun-deployment'Update config
Finally, add the following to your config.
set :raygun_api_key, "YOUR_APPLICATIONS_API_KEY"
set :raygun_auth_token, "YOUR_EXTERNAL_AUTH_TOKEN"
set :raygun_release_path, "releases/LATEST" #optional, defaults to RELEASEThis can either go in config/deploy.rb or in config/deploy/production.rb depending on whether you want it to run in every environment or not. We recommend having a separate Raygun Application per environment, so would suggest you put it in the environment specific config files.
Deployment
When you are ready to deploy, create a release file in RELEASE (or whatever release path you have chosen) with the following format:
version: 6.0.0.0
ownerName: Jamie Penney
emailAddress: jamie@example.com
notes: |
# Testing out the rake plugin
* More markdown formatting
### JamieThe next time you deploy, capistrano-raygun-deployment will register your deployment with Raygun!