Disable New Relic from reporting when switching environments locally
Asked Answered
D

1

7

We use New Relic to monitor our Rails applications. Sometimes, when we are developing locally, we need to switch to a different environment to test things. We start up our server like so

$ RAILS_ENV=production rails s

Unfortunately, now our app starts sending data to new relic as though we added another machine to our production cluster.

How can we disable the New Relic gem from sending data up to New Relic when we need to test settings locally under a different environment?

Dionne answered 29/3, 2013 at 16:27 Comment(0)
L
10

This should work: NEWRELIC_ENABLE=false RAILS_ENV=production rails s

Lamblike answered 29/3, 2013 at 17:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.