Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created June 12, 2012 21:49
Show Gist options
  • Save jamiew/2920342 to your computer and use it in GitHub Desktop.
Save jamiew/2920342 to your computer and use it in GitHub Desktop.
$ 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