This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree 6 files changed +29
-25
lines changed
6 files changed +29
-25
lines changed Original file line number Diff line number Diff line change @@ -242,15 +242,15 @@ module.exports = function (grunt) {
242
242
newrelic : {
243
243
browser : {
244
244
development : {
245
- licenseKey : "28fb2fc79c" ,
246
- applicationID : "4447207"
245
+ licenseKey : process . env . NEWRELIC_BROWSER_LICENSCEKEY ,
246
+ applicationID : process . env . NEWRELIC_BROWSER_APPLICATIONID
247
247
}
248
248
} ,
249
249
server : {
250
250
development : {
251
- APP_NAME : "testserver" ,
252
- LICENSE_KEY : "8f1eb71c599e28fb2b02e7e521488cbabb97174f" ,
253
- LOGGING_LEVEL : "trace"
251
+ APP_NAME : process . env . NEWRELIC_SERVER_APPNAME ,
252
+ LICENSE_KEY : process . env . NEWRELIC_SERVER_LICENSE_KEY ,
253
+ LOGGING_LEVEL : process . env . NEWRELIC_SERVER_LOGGING_LEVEL
254
254
}
255
255
}
256
256
}
Original file line number Diff line number Diff line change 20
20
// global arena object
21
21
var arena = { } ;
22
22
</ script >
23
+ < script src ="@@STATIC_FILE_HOST/js/newrelic.js "> </ script >
23
24
< script src ="@@STATIC_FILE_HOST/js/bundle.js "> </ script >
24
25
25
26
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
Original file line number Diff line number Diff line change @@ -85,4 +85,13 @@ set CHALLENGE_ADVERTISING_INTERVAL=5000
85
85
set CHALLENGE_ADVERTISING_UPDATE = 300000
86
86
87
87
:: The TopCoder host name
88
- set TC_HOSTNAME = http://www.topcoder.com
88
+ set TC_HOSTNAME = http://www.topcoder.com
89
+
90
+ :: The New Relic Browser KEY
91
+ set NEWRELIC_BROWSER_APPLICATIONID = '4447207'
92
+ set NEWRELIC_BROWSER_LICENSCEKEY = '28fb2fc79c'
93
+
94
+ :: The New Relic Server KEY
95
+ set NEWRELIC_SERVER_APPNAME = 'testserver'
96
+ set NEWRELIC_SERVER_LICENSE_KEY = '8f1eb71c599e28fb2b02e7e521488cbabb97174f'
97
+ set NEWRELIC_SERVER_LOGGING_LEVEL = 'trace'
Original file line number Diff line number Diff line change @@ -90,4 +90,12 @@ export CHALLENGE_ADVERTISING_INTERVAL=5000
90
90
export CHALLENGE_ADVERTISING_UPDATE=300000
91
91
92
92
# The TopCoder host name
93
- export TC_HOSTNAME=http://www.topcoder.com
93
+ export TC_HOSTNAME=http://www.topcoder.com
94
+
95
+ # The New Relic Browser KEY
96
+ export NEWRELIC_BROWSER_APPLICATIONID=' 4447207'
97
+ export NEWRELIC_BROWSER_LICENSCEKEY=' 28fb2fc79c'
98
+ # The New Relic Server KEY
99
+ export NEWRELIC_SERVER_APPNAME=' testserver'
100
+ export NEWRELIC_SERVER_LICENSE_KEY=' 8f1eb71c599e28fb2b02e7e521488cbabb97174f'
101
+ export NEWRELIC_SERVER_LOGGING_LEVEL=' trace'
Original file line number Diff line number Diff line change 3
3
module . exports = function ( grunt ) {
4
4
grunt . registerTask ( "servernewrelic" , "generate a newrelic.js file" , function ( environment ) {
5
5
6
- var environment ;
7
-
8
- if ( process . env . NODE_ENV == null ) {
9
- environment = "development"
10
- } else {
11
- environment = process . env . NODE_ENV
12
- }
13
-
14
6
try {
15
7
var target = grunt . config . get ( 'newrelic' ) ,
16
- config_path = target . server [ environment ] ,
17
- app_name = "app_name : ['" + environment + "-" + config_path . APP_NAME + "']" ,
8
+ config_path = target . server [ "development" ] ,
9
+ app_name = "app_name : ['development" + "-" + config_path . APP_NAME + "']" ,
18
10
license_key = "license_key : '" + config_path . LICENSE_KEY + "'" ,
19
11
logging_level = "level : " + config_path . LOGGING_LEVEL + "'" ;
20
12
@@ -41,4 +33,4 @@ module.exports = function(grunt) {
41
33
grunt . log . ok ( "Unable to write newrelic.js" ) ;
42
34
}
43
35
} ) ;
44
- } ;
36
+ } ;
Original file line number Diff line number Diff line change @@ -5,15 +5,9 @@ module.exports = function(grunt) {
5
5
grunt . registerTask ( "newrelic" , "generate a newrelic.js file" , function ( ) {
6
6
var environment ;
7
7
8
- if ( process . env . NODE_ENV == null ) {
9
- environment = "development"
10
- } else {
11
- environment = process . env . NODE_ENV
12
- }
13
-
14
8
try {
15
9
var target = grunt . config . get ( 'newrelic' ) ,
16
- config_path = target . browser [ environment ] ,
10
+ config_path = target . browser [ "development" ] ,
17
11
applicationID = 'applicationID : "' + config_path . applicationID + '"' ,
18
12
license_key = 'license_key : "' + config_path . licenseKey + '"' ;
19
13
}
You can’t perform that action at this time.
0 commit comments