set default notify option

This commit is contained in:
oleg 2015-07-20 23:57:41 +03:00
parent d0f0593610
commit 57bc456454

5
app.js
View File

@ -48,6 +48,10 @@ app.lib.reader = reader;
app.lib.notifier = notifier;
app.lib.logger = libLogger;
var configDefaults = {
notify: {}
};
Steppy(
function() {
app.config = {};
@ -90,6 +94,7 @@ Steppy(
},
function(err, mkdirResult, config) {
_(app.config).defaults(config);
_(app.config).defaults(configDefaults);
logger.log('Server config:', JSON.stringify(app.config, null, 4));