include unicorn+newrelic initializer

This commit is contained in:
r888888888
2013-04-19 22:28:53 -07:00
parent 8ad46b1352
commit 5f6119d28b

View File

@@ -0,0 +1,7 @@
# Ensure the agent is started using Unicorn.
# This is needed when using Unicorn and preload_app is not set to true.
# See https://newrelic.com/docs/ruby/no-data-with-unicorn
if defined? Unicorn
::NewRelic::Agent.manual_start()
::NewRelic::Agent.after_fork(:force_reconnect => true)
end