mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
if create directory command executed - loading spinner would be on top
This commit is contained in:
parent
50a6bd820f
commit
bce99f2a65
3 changed files with 34 additions and 26 deletions
46
cloudcmd.js
46
cloudcmd.js
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue