@@ -39,14 +39,15 @@ var Confidence = require('confidence');
39
39
var _assign = require ( 'lodash.assign' ) ;
40
40
41
41
var criteria = {
42
- scheme : process . env . SCHEME
42
+ scheme : result . value . SCHEME
43
43
} ;
44
44
45
45
var config = {
46
46
$meta : 'jsPerf.com' ,
47
- env : process . env . NODE_ENV ,
48
- port : process . env . PORT ,
49
- domain : process . env . DOMAIN ,
47
+ env : result . value . NODE_ENV ,
48
+ port : result . value . PORT ,
49
+ domain : result . value . DOMAIN ,
50
+ scheme : result . value . SCHEME ,
50
51
auth : {
51
52
oauth : {
52
53
secure : {
@@ -55,14 +56,14 @@ var config = {
55
56
$default : false
56
57
} ,
57
58
github : {
58
- secret : process . env . GITHUB_CLIENT_SECRET ,
59
- id : process . env . GITHUB_CLIENT_ID ,
60
- callback : process . env . GITHUB_CALLBACK
59
+ secret : result . value . GITHUB_CLIENT_SECRET ,
60
+ id : result . value . GITHUB_CLIENT_ID ,
61
+ callback : result . value . GITHUB_CALLBACK
61
62
} ,
62
- cookiePass : process . env . BELL_COOKIE_PASS
63
+ cookiePass : result . value . BELL_COOKIE_PASS
63
64
} ,
64
65
session : {
65
- pass : process . env . COOKIE_PASS ,
66
+ pass : result . value . COOKIE_PASS ,
66
67
name : 'sid-jsperf' ,
67
68
secure : {
68
69
$filter : 'scheme' ,
@@ -71,17 +72,17 @@ var config = {
71
72
}
72
73
}
73
74
} ,
74
- browserscope : process . env . BROWSERSCOPE ,
75
+ browserscope : result . value . BROWSERSCOPE ,
75
76
mysql : {
76
- host : process . env . MYSQL_HOST ,
77
- port : process . env . MYSQL_PORT ,
78
- user : process . env . MYSQL_USER ,
79
- pass : process . env . MYSQL_PASSWORD ,
80
- db : process . env . MYSQL_DATABASE
77
+ host : result . value . MYSQL_HOST ,
78
+ port : result . value . MYSQL_PORT ,
79
+ user : result . value . MYSQL_USER ,
80
+ pass : result . value . MYSQL_PASSWORD ,
81
+ db : result . value . MYSQL_DATABASE
81
82
} ,
82
83
loggly : {
83
- token : process . env . LOGGLY_TOKEN ,
84
- subdomain : process . env . LOGGLY_SUBDOMAIN
84
+ token : result . value . LOGGLY_TOKEN ,
85
+ subdomain : result . value . LOGGLY_SUBDOMAIN
85
86
}
86
87
} ;
87
88
0 commit comments