mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
fixed bug with fs.watch and test mode
This commit is contained in:
parent
dca23b0501
commit
12d8212ef1
1 changed files with 8 additions and 7 deletions
15
cloudcmd.js
15
cloudcmd.js
|
|
@ -128,13 +128,6 @@
|
|||
}
|
||||
|
||||
function init(){
|
||||
fs.watch(CONFIG_PATH, function(){
|
||||
/* every catch up - calling twice */
|
||||
setTimeout(function() {
|
||||
readConfig();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
if(update)
|
||||
update.get();
|
||||
|
||||
|
|
@ -174,6 +167,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
if(Config.server)
|
||||
fs.watch(CONFIG_PATH, function(){
|
||||
/* every catch up - calling twice */
|
||||
setTimeout(function() {
|
||||
readConfig();
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
server.start({
|
||||
appcache : appCacheProcessing,
|
||||
minimize : minimize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue