Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add New Relic

  • Loading branch information...
commit 099fc3d4f8f56021ebf5cb20b4c8ae849fb2df6b 1 parent db0afad
@samstokes samstokes authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  Gemfile
  2. +2 −0  Gemfile.lock
  3. +4 −0 webhook.rb
View
1  Gemfile
@@ -3,3 +3,4 @@ gem 'rack'
gem 'sinatra'
gem 'json'
gem 'right_aws', :git => 'git://github.com/rapportive-oss/right_aws.git'
+gem 'newrelic_rpm'
View
2  Gemfile.lock
@@ -9,6 +9,7 @@ GEM
remote: http://rubygems.org/
specs:
json (1.5.1)
+ newrelic_rpm (3.1.2)
rack (1.2.2)
right_http_connection (1.3.0)
sinatra (1.2.1)
@@ -21,6 +22,7 @@ PLATFORMS
DEPENDENCIES
json
+ newrelic_rpm
rack
right_aws!
sinatra
View
4 webhook.rb
@@ -9,6 +9,10 @@
$acw = RightAws::AcwInterface.new(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
+configure :production do
+ require 'newrelic_rpm'
+end
+
get '/' do
'This is a web hook!'
end
Please sign in to comment.
Something went wrong with that request. Please try again.