The following lines in app.js causes an issue and results in app crashes. Diego no longer provides the VCAP_APP_HOST value. A temporary workaround is to change the default value from 'localhost' to '0.0.0.0'.
var port = (process.env.VCAP_APP_PORT || process.env.PORT || 3000);
var host = (process.env.VCAP_APP_HOST || process.env.HOST || 'localhost');
The following lines in app.js causes an issue and results in app crashes. Diego no longer provides the VCAP_APP_HOST value. A temporary workaround is to change the default value from 'localhost' to '0.0.0.0'.
var port = (process.env.VCAP_APP_PORT || process.env.PORT || 3000); var host = (process.env.VCAP_APP_HOST || process.env.HOST || 'localhost');