Tuesday 16 July 2013

newrelic_rpm with Rails 4 on heroku

There is a bug in newrelics config file

The solution:



1. in config/newrelic.yml

line 46  replace

app_name: <%= ENV["NEW_RELIC_APP_NAME"] %>

view is var in defined in heroku

blah:(master) ✗ heroku config
DATABASE_URL                 =>
HEROKU_POSTGRESQL_COBALT_URL =>
NEW_RELIC_LICENSE_KEY        =>
NEW_RELIC_LOG                =>
PAPERTRAIL_API_TOKEN         =>

set the var

heroku config:set NEW_RELIC_APP_NAME=new_app

also in ~/.profile

export NEW_RELIC_APP_NAME=my_app

No comments:

Post a Comment