Skip to content

Commit

Permalink
Retrieve port from PORT env variable, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 4, 2017
1 parent e08adb6 commit 7177b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/micro.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!process.env.NOW && pkg.dist) {
}

args
.option('port', 'Port to listen on', 3000)
.option('port', 'Port to listen on', process.env.PORT || 3000)
.option(['H', 'host'], 'Host to listen on', '0.0.0.0')

const flags = args.parse(process.argv)
Expand Down

0 comments on commit 7177b59

Please sign in to comment.