No commit activity in last 3 years
No release in over 3 years
Capistrano recipe to notify New Relic after deploying code
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

< 3.0, >= 2.0
 Project Readme

capistrano-new-relic

Capistrano v2 recipe to notify New Relic of deployments.

This gem is inspired by https://github.com/martinj/capistrano-jenkins.

Your your name and email os fetched from git config, so make sure you have valid values for user.name and user.email.

Note: Capistrano 3 is completely incompatible with Capistrano 2. If you are using Capistrano 3 you can use cap-newrelic (the configuration is not directly compatible).

Installation

gem install capistrano-new-relic

Options

:new_relic_api_key

API key to use when posting to New Relic.

By default it will check for the API key in the environment variable NEW_RELIC_API_KEY.

Usage

Include the recipe

require 'capistrano-new-relic'

Set required parameters

set :new_relic_app_name, "My Application"
set :new_relic_app_id, "XXXXXXXXXX"
set :branch, "master"
set :deploy_env, "production"
set :new_relic_api_key, "<yoursecretapikey>"

Add the task, typically after deploy

after "deploy:update_code", "newrelic:notify"