Add this line to your application's Gemfile:
gem 'capistrano-newrelic'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-newrelic
require 'capistrano/newrelic'
License key and application name are retrieved from newrelic.yml.
Configurable options, shown here with defaults:
# New Relic environment to deploy to. Sets config based on section of newrelic.yml
set :newrelic_env, fetch(:stage, fetch(:rack_env, fetch(:rails_env, 'production')))
# Revision
set :newrelic_revision, capture('git show-ref #{fetch(:branch)}').split.first
# Deployment changelog
set :newrelic_changelog, ""
# Deployment description
set :newrelic_desc, ""
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request