Readd New Relic integration, ignore config, log, tmp and Gemfile.lock
This commit is contained in:
parent
2cede238f5
commit
488f80093b
2 changed files with 10 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
config/
|
||||||
|
tmp/
|
||||||
|
Gemfile.lock
|
||||||
|
log/
|
|
@ -1,4 +1,5 @@
|
||||||
require 'camping'
|
require 'camping'
|
||||||
|
require 'newrelic_rpm'
|
||||||
|
|
||||||
# Camping is a great small framework.
|
# Camping is a great small framework.
|
||||||
Camping.goes :StargateRando
|
Camping.goes :StargateRando
|
||||||
|
@ -6,6 +7,11 @@ Camping.goes :StargateRando
|
||||||
# Data was moved out to stargaterando-data.rb to keep this file clean
|
# Data was moved out to stargaterando-data.rb to keep this file clean
|
||||||
require './stargaterando-data'
|
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.
|
# This holds our (currently there's only one) controllers.
|
||||||
module StargateRando::Controllers
|
module StargateRando::Controllers
|
||||||
class Index < R '/'
|
class Index < R '/'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue