Skip to content

Commit 0fd54b3

Browse files
committed
Don't specify localhost as host
1 parent c66819e commit 0fd54b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ app.use(methodOverride()); // simulate DELETE and PUT
2020

2121
app.engine('html', require('ejs').renderFile);
2222
app.set('views', __dirname + '/views');
23-
app.set('host', process.env.VCAP_APP_HOST || 'localhost'); // The IP address of the Cloud Foundry DEA (Droplet Execution Agent) that hosts this application
23+
app.set('host', process.env.VCAP_APP_HOST); // The IP address of the Cloud Foundry DEA (Droplet Execution Agent) that hosts this application
2424
app.set('port', process.env.VCAP_APP_PORT || process.env.PORT || '3000'); // The port on the DEA for communication with the application
2525

2626
var appInfo = JSON.parse(process.env.VCAP_APPLICATION || "{}"); // VCAP_APPLICATION contains useful information about a deployed application.

0 commit comments

Comments
 (0)