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 '/'