Mercurial > zeropaste
changeset 156:d7b64b639d15
Disable newrelic by default (configurable).
author | Edho Arief <edho@myconan.net> |
---|---|
date | Thu, 29 Nov 2012 00:22:50 +0700 |
parents | 244e752087d6 |
children | 3886be50efde |
files | Gemfile config/default_config.rb config/local_config.rb.example |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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']
--- 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