Created
June 12, 2012 21:49
-
-
Save jamiew/2920342 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat config/initializers/new_relic_reconnect.rb | |
# Ensure the agent is started using Unicorn | |
# This is needed when using Unicorn and preload_app is not set to true. | |
# See http://support.newrelic.com/kb/troubleshooting/unicorn-no-data | |
NewRelic::Agent.after_fork(:force_reconnect => true) if defined? Unicorn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment