Skip to content

Commit

Permalink
Respect the PORT environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ethomson committed Nov 5, 2019
1 parent 20bc30a commit 6a833a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var express = require('express'),
app = express(),
port = 3000;
port = process.env.PORT || 3000;

app.use(express.static('public'));

Expand Down

0 comments on commit 6a833a6

Please sign in to comment.