mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
add port
This commit is contained in:
parent
b11b47c5c0
commit
78ad67efa5
3 changed files with 8 additions and 7 deletions
2
cloudcmd
2
cloudcmd
|
|
@ -1 +1 @@
|
|||
Subproject commit 772e017ca222dbcc5d4843b0e685b897cf5f83e8
|
||||
Subproject commit ef3f9aac0be803018d53dfad4fcf3eb952058c23
|
||||
|
|
@ -4,4 +4,4 @@
|
|||
"scripts":{"test":"sh test/test.sh","start": "server.js"},
|
||||
"engines": { "node": "0.6.x" },
|
||||
"subdomain": "cloudcmd"
|
||||
}
|
||||
}
|
||||
11
server.js
11
server.js
|
|
@ -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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue