This commit is contained in:
node 2012-07-03 10:04:59 +00:00
parent b11b47c5c0
commit 78ad67efa5
3 changed files with 8 additions and 7 deletions

@ -1 +1 @@
Subproject commit 772e017ca222dbcc5d4843b0e685b897cf5f83e8
Subproject commit ef3f9aac0be803018d53dfad4fcf3eb952058c23

View file

@ -4,4 +4,4 @@
"scripts":{"test":"sh test/test.sh","start": "server.js"},
"engines": { "node": "0.6.x" },
"subdomain": "cloudcmd"
}
}

View file

@ -46,7 +46,7 @@ var CloudServer={
INDEX :'index.html',
/* name of direcotory with libs */
LIBDIR :'./lib',
LIBDIRSERVER :'./lib/server',
LIBDIRSERVER :'./lib/server'
};
/*
@ -196,11 +196,12 @@ CloudServer.start=function()
var http = require('http');
http.createServer(CloudServer._controller).listen(process.env.PORT ||
process.env.VCAP_APP_PORT /* cloudfoundry */ ||
19271,
process.env.VCAP_APP_PORT /* cloudfoundry */ ||
process.env.app_port /* nodester */ ||
31337,
'0.0.0.0' || '127.0.0.1');
console.log('Cloud Commander server running at http://127.0.0.1:'+
(process.env.PORT===undefined?19271:process.env.PORT));
(process.env.PORT===undefined?31337:process.env.PORT));
};
@ -634,4 +635,4 @@ CloudServer.sendResponse = function(pHead, pData,pName){
}
};
CloudServer.start();
CloudServer.start();