# HG changeset patch # User Edho Arief # Date 1354123370 -25200 # Node ID d7b64b639d15d7c923f3832d5c612d74820929d1 # Parent 244e752087d6fd3106a00587aa762881122f15e7 Disable newrelic by default (configurable). diff -r 244e752087d6 -r d7b64b639d15 Gemfile --- a/Gemfile Thu Nov 29 00:20:53 2012 +0700 +++ b/Gemfile Thu Nov 29 00:22:50 2012 +0700 @@ -40,4 +40,6 @@ # To use debugger # gem 'ruby-debug' -gem 'newrelic_rpm' +group :newrelic do + gem 'newrelic_rpm' +end diff -r 244e752087d6 -r d7b64b639d15 config/default_config.rb --- a/config/default_config.rb Thu Nov 29 00:20:53 2012 +0700 +++ b/config/default_config.rb Thu Nov 29 00:22:50 2012 +0700 @@ -1,3 +1,5 @@ CONFIG['standalone'] ||= true +CONFIG['newrelic'] ||= false CONFIG['bundler_groups'] ||= Rails.groups(:assets => %w(development test)) CONFIG['bundler_groups'] << 'standalone' if CONFIG['standalone'] +CONFIG['bundler_groups'] << 'newrelic' if CONFIG['newrelic'] diff -r 244e752087d6 -r d7b64b639d15 config/local_config.rb.example --- a/config/local_config.rb.example Thu Nov 29 00:20:53 2012 +0700 +++ b/config/local_config.rb.example Thu Nov 29 00:22:50 2012 +0700 @@ -3,3 +3,8 @@ # - MRI Ruby: Unicorn # - JRuby and Rubinius: Puma # CONFIG['standalone'] = true + +# Set to true to use newrelic monitoring. +# Don't forget to put your newrelic.yml in config directory. +# Default: false +# CONFIG['newrelic'] = false