mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use node-watch instead of fs.watch to watch for db changes
fs.watch doesn't trigger inside of docker.
This commit is contained in:
committed by
mvdbeek
parent
6ca03701bb
commit
0aba240bca
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user