Bluemix prefers HOST/PORT over VCAP_APP_XXXX

This commit is contained in:
Sai Vennam 2015-12-03 13:29:58 -05:00
parent 638368844d
commit de6ebf65ee
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ function setHost(app, instructions) {
process.env.npm_config_host ||
process.env.OPENSHIFT_SLS_IP ||
process.env.OPENSHIFT_NODEJS_IP ||
process.env.VCAP_APP_HOST ||
process.env.HOST ||
process.env.VCAP_APP_HOST ||
instructions.config.host ||
process.env.npm_package_config_host ||
app.get('host');
@ -111,8 +111,8 @@ function setPort(app, instructions) {
process.env.npm_config_port,
process.env.OPENSHIFT_SLS_PORT,
process.env.OPENSHIFT_NODEJS_PORT,
process.env.VCAP_APP_PORT,
process.env.PORT,
process.env.VCAP_APP_PORT,
instructions.config.port,
process.env.npm_package_config_port,
app.get('port'),