Merge branch 'qCloud' of git.yoho.cn:fe/yohobuywap-node into qCloud
Showing
2 changed files
with
2 additions
and
2 deletions
@@ -18,7 +18,7 @@ app.on('mount', function(parent) { | @@ -18,7 +18,7 @@ app.on('mount', function(parent) { | ||
18 | Object.assign(app.locals, parent.locals); | 18 | Object.assign(app.locals, parent.locals); |
19 | }); | 19 | }); |
20 | 20 | ||
21 | -app.use(global.yoho.hbs({ | 21 | +app.engine('.hbs', hbs({ |
22 | extname: '.hbs', | 22 | extname: '.hbs', |
23 | defaultLayout: 'layout', | 23 | defaultLayout: 'layout', |
24 | layoutsDir: doraemon, | 24 | layoutsDir: doraemon, |
@@ -70,7 +70,7 @@ module.exports = { | @@ -70,7 +70,7 @@ module.exports = { | ||
70 | port: 4444 // influxdb port | 70 | port: 4444 // influxdb port |
71 | }, | 71 | }, |
72 | console: { | 72 | console: { |
73 | - level: 'info', | 73 | + level: isProduction ? 'error' : 'info', |
74 | colorize: 'all', | 74 | colorize: 'all', |
75 | prettyPrint: true | 75 | prettyPrint: true |
76 | } | 76 | } |
-
Please register or login to post a comment