Skip to content

Commit

Permalink
Added ability to override port with environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Winterbottom committed Nov 8, 2018
1 parent 46f9105 commit 9d79ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SERVER_CONFIG = {
// use for 404 errors if a valid version is not present
defaultVersion: '3_0_1',
// defaut port for the app
port: 3000,
port: process.env.PORT || 3000,
// Logger configurations
logging: {
level: 'debug'
Expand Down

0 comments on commit 9d79ad3

Please sign in to comment.