File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
// node_env can either be "development" or "production"
6
- var node_env = process . env . NODE_ENV || "development" ;
6
+ var nodeEnv = process . env . NODE_ENV || "development" ;
7
7
var defaultPort = 8000 ;
8
8
9
9
// URL of pdf hydrater
@@ -15,15 +15,16 @@ var defaultOfficeHydraterUrl = 'https://office.anyfetch.com';
15
15
// Number of office instance to run simultaneously per cluster
16
16
var defaultConcurrency = 1 ;
17
17
18
- if ( node_env === "production" ) {
18
+ if ( nodeEnv === "production" ) {
19
19
defaultPort = 80 ;
20
20
}
21
21
22
22
// Exports configuration
23
23
module . exports = {
24
- env : node_env ,
24
+ env : nodeEnv ,
25
25
port : process . env . PORT || defaultPort ,
26
26
concurrency : process . env . OFFICE_CONCURRENCY || defaultConcurrency ,
27
27
pdfHydraterUrl : process . env . PDF_HYDRATER_URL || defaultPdfHydraterUrl ,
28
- officeHydraterUrl : process . env . OFFICE_HYDRATER_URL || defaultOfficeHydraterUrl
28
+ officeHydraterUrl : process . env . OFFICE_HYDRATER_URL || defaultOfficeHydraterUrl ,
29
+ appName : process . env . APP_NAME || "office-hydrater"
29
30
} ;
Original file line number Diff line number Diff line change 22
22
],
23
23
"dependencies" : {
24
24
"anyfetch" : " ^1.0.7" ,
25
- "anyfetch-hydrater" : " 1 .0.14 " ,
25
+ "anyfetch-hydrater" : " ^2 .0.0 " ,
26
26
"async" : " 0.9.x" ,
27
27
"restify" : " ~2.8.1" ,
28
- "supertest" : " 0.13.x "
28
+ "supertest" : " ^0.15.0 "
29
29
},
30
30
"devDependencies" : {
31
- "mocha" : " 1.20.x " ,
31
+ "mocha" : " ^2.0.1 " ,
32
32
"rarity" : " 2.1.x" ,
33
- "should" : " 4.0.x "
33
+ "should" : " ^4.3.0 "
34
34
},
35
35
"licence" : " MIT" ,
36
36
"engines" : {
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ describe('Test office results', function() {
18
18
var officeHydrater = require ( '../app.js' ) ;
19
19
20
20
before ( function ( ) {
21
+ var log = officeHydrater . log ;
22
+ log . info = log . warn = log . error = function ( ) { } ;
21
23
officeHydrater . listen ( 1339 ) ;
22
24
} ) ;
23
25
after ( function ( done ) {
You can’t perform that action at this time.
0 commit comments