[Heroku][Rails] How to Install New Relic Add-on [Cedar Stack]

Tadashi Shigeoka ·  Sun, June 17, 2012

I installed the New Relic add-on to a Ruby on Rails 3.2.5 app running on Heroku, so I’ll share the procedure.

Heroku

When using it with Cedar stack, simply adding the add-on wasn’t enough to make it work.

Here’s the New Relic installation procedure.

Add New Relic Add-on

$ heroku addons:add newrelic:standard

Add newrelic_rpm to Gemfile

group :production do
  gem 'newrelic_rpm'
end

Run bundle install

$ bundle install --without production

Download newrelic.yml and place it under config

$ curl https://raw.github.com/gist/2253296/newrelic.yml > config/newrelic.yml

Deploy to Heroku

$ git commit -m "Added New Relic Plugin"
$ git push heroku master

That’s all about installing the New Relic add-on to a Heroku + Ruby on Rails 3.2.5 app from the Gemba.

Reference Information

That’s all from the Gemba.