if create directory command executed - loading spinner would be on top

This commit is contained in:
coderaiser 2013-03-11 08:34:14 -04:00
parent 50a6bd820f
commit bce99f2a65
3 changed files with 34 additions and 26 deletions

View file

@ -165,31 +165,33 @@
'from now all logs will be writed to log.txt');
writeLogsToFile();
}
}
if(Config.server)
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
});
if(Config.server)
fs.watch(CONFIG_PATH, function(){
/* every catch up - calling twice */
setTimeout(function() {
readConfig();
}, 1000);
});
var lParams = {
appcache : appCacheProcessing,
minimize : minimize,
rest : rest,
route : route
};
if(Config.ssl)
lParams.ssl = {
ca : fs.readFileSync(DIR + 'ssl/sub.class1.server.ca.pem'),
key : fs.readFileSync(DIR + 'ssl/ssl.key'),
cert : fs.readFileSync(DIR + 'ssl/ssl.crt')
var lParams = {
appcache : appCacheProcessing,
minimize : minimize,
rest : rest,
route : route
};
server.start(lParams);
if(Config.ssl)
lParams.ssl = {
ca : fs.readFileSync(DIR + 'ssl/sub.class1.server.ca.pem'),
key : fs.readFileSync(DIR + 'ssl/ssl.key'),
cert : fs.readFileSync(DIR + 'ssl/ssl.crt')
};
server.start(lParams);
}
else
Util.log('read error: config.json');
}
function readConfig(pCallBack){