Merge pull request #7967 from mvdbeek/use_node_watch_for_monitoring_db

[19.05] Use node-watch instead of fs.watch to watch for db changes
This commit is contained in:
John Chilton
2019-05-17 15:47:21 -04:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
var fs = require('fs');
var sqlite3 = require('sqlite3')
var watch = require('node-watch');
var endsWith = function(subjectString, searchString) {
@@ -67,7 +68,7 @@ var mapFor = function(path) {
}
console.log("Watching path " + path);
loadMap();
fs.watch(path, loadMap);
watch(path, loadMap);
return map;
};
+1
View File
@@ -14,6 +14,7 @@
"commander": "~2.19.0",
"eventemitter3": "3.1.0",
"http-proxy": "1.17.0",
"node-watch": "0.6.2",
"sqlite3": "4.0.4"
}
}