fix high cpu usage at start by set watcher depth

This commit is contained in:
oleg 2015-07-15 00:52:25 +03:00
parent 470a91e6b0
commit d3f5201968

View File

@ -49,7 +49,7 @@ exports.init = function(app, callback) {
// not be emitted
var watcher = chokidar.watch(
path.join(app.config.paths.projects, '*', 'config.*'),
{ignoreInitial: true}
{ignoreInitial: true, depth: 1}
);
watcher.on('add', syncProject);
watcher.on('change', syncProject);