Skip to content

Commit

Permalink
Read port from environment variable PORT (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim authored and leo committed Jun 18, 2018
1 parent eb7d3bc commit d775a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const loadConfig = async (cwd, entry, args) => {

if (!args['--listen']) {
// Default endpoint
args['--listen'] = [[5000]];
args['--listen'] = [[process.env.PORT || 5000]];
}

if (args._.length > 1) {
Expand Down

0 comments on commit d775a09

Please sign in to comment.