fixed bug with testing mode

This commit is contained in:
coderaiser 2012-10-04 03:51:36 -04:00
parent eb78921c37
commit 1df30e21a8
2 changed files with 9 additions and 3 deletions

View file

@ -14,6 +14,9 @@ file not just like Linux.
* Added ability to change charset on terminal only if
it's build in command on win32.
* Fixed bug with testing mode. If was same arguments,
Cloud Commander works in testing mode and server do not
started.
2012.10.01, Version 0.1.7

View file

@ -176,8 +176,12 @@ CloudServer.start = function (pConfig) {
!process.env.HOME.indexOf('/opt/haibu')) {
this.IP = '0.0.0.0';
}
console.log(process.argv);
console.log(this.Config);
/* server mode or testing mode */
if (!process.argv[2] && this.Config.server) {
if (this.Config.server) {
var http = require('http');
try {
@ -193,9 +197,8 @@ CloudServer.start = function (pConfig) {
console.log('Cloud Commander server could not started');
console.log(pError);
}
}else{
}else
console.log('Cloud Commander testing mode');
}
};