From 488f80093b802bc0c0fa987c997bc2a6f19459d7 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Mon, 3 Aug 2015 01:09:56 -0700 Subject: [PATCH] Readd New Relic integration, ignore config, log, tmp and Gemfile.lock --- .gitignore | 4 ++++ stargaterando.rb | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0e64d0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +config/ +tmp/ +Gemfile.lock +log/ diff --git a/stargaterando.rb b/stargaterando.rb index 86706c4..65c8e82 100644 --- a/stargaterando.rb +++ b/stargaterando.rb @@ -1,4 +1,5 @@ require 'camping' +require 'newrelic_rpm' # Camping is a great small framework. Camping.goes :StargateRando @@ -6,6 +7,11 @@ Camping.goes :StargateRando # Data was moved out to stargaterando-data.rb to keep this file clean require './stargaterando-data' +# Set up New Relic monitoring +def StargateRando.create + NewRelic::Agent.manual_start +end + # This holds our (currently there's only one) controllers. module StargateRando::Controllers class Index < R '/'