Merge pull request #158 from svennam92/patch-1
Bluemix favors PORT over VCAP_APP_PORT
This commit is contained in:
commit
d8b298b53d
|
@ -100,8 +100,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');
|
||||
|
@ -118,8 +118,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'),
|
||||
|
|
Loading…
Reference in New Issue