Skip to content

Commit

Permalink
fix app.js to use the PORT environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dimroc committed Jul 19, 2011
1 parent 0da0bca commit cdd1ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var app = module.exports = express.createServer();
// Configuration

var host = process.env.VCAP_APP_HOST || 'localhost';
var port = Number(process.env.VCAP_APP_PORT || 3000);
var port = process.env.PORT || 3000;

var tempfolder = __dirname + '/tmp';

Expand Down

0 comments on commit cdd1ea2

Please sign in to comment.