testing mode configuration with clear argv

This commit is contained in:
coderaiser 2012-07-07 06:17:08 -04:00
parent a1734729f0
commit 63d8330e9f

View file

@ -271,7 +271,7 @@ CloudServer.start=function()
CloudServer.IP;
/* server mode or testing mode */
if(process.argv[2]!=='test' && CloudServer.Config.server){
if(!process.argv[2] && CloudServer.Config.server){
var http = require('http');
try{