minor changes

This commit is contained in:
coderaiser 2012-11-09 07:43:48 -05:00
parent c671ea973b
commit ad87f4ff6b
6 changed files with 119 additions and 98 deletions

View file

@ -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');
};