mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-30 11:10:24 +00:00
minor changes
This commit is contained in:
parent
c671ea973b
commit
ad87f4ff6b
6 changed files with 119 additions and 98 deletions
10
server.js
10
server.js
|
|
@ -171,9 +171,8 @@ CloudServer.start = function (pConfig, pIndexProcessing, pAppCachProcessing) {
|
|||
|
||||
/* server mode or testing mode */
|
||||
if (lConfig.server) {
|
||||
var http = require('http');
|
||||
|
||||
try {
|
||||
var http = main.http,
|
||||
lError = Util.tryCatchLog(function(){
|
||||
this.Server = http.createServer(this._controller);
|
||||
this.Server.listen(this.Port, this.IP);
|
||||
|
||||
|
|
@ -186,10 +185,9 @@ CloudServer.start = function (pConfig, pIndexProcessing, pAppCachProcessing) {
|
|||
|
||||
console.log('Cloud Commander server running at http://' +
|
||||
this.IP + ':' + this.Port);
|
||||
}catch(pError){
|
||||
});
|
||||
if(lError)
|
||||
console.log('Cloud Commander server could not started');
|
||||
console.log(pError);
|
||||
}
|
||||
}else
|
||||
console.log('Cloud Commander testing mode');
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue