Skip to content

Commit

Permalink
Merge pull request #280 from porst17/issue/port-from-environment
Browse files Browse the repository at this point in the history
Fix PORT environment variable being ignored
  • Loading branch information
alallier authored Jan 2, 2023
2 parents a4ae0ea + 8cda46a commit 8eea09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/reload
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ program.version(require('../package.json').version)
.option('-d, --dir [dir]', 'The directory to serve up. Defaults to current dir.', process.cwd())
.option('-w, --watch-dir [watch-dir]', 'The directory to watch. Defaults the serving directory.')
.option('-e, --exts [extensions]', 'Extensions separated by commas or pipes. Defaults to html,js,css.', 'html|js|css')
.option('-p, --port [port]', 'The port to bind to. Can be set with PORT env variable as well. Defaults to 8080', '8080')
.option('-p, --port [port]', 'The port to bind to. Can be set with PORT env variable as well. Defaults to 8080.', process.env.PORT || '8080')
.option('-s, --start-page [start-page]', 'Specify a start page. Defaults to index.html', 'index.html')
.option('-f, --fallback [fallback]', 'Fallback to the start page when route is not found')
.option('-v, --verbose [verbose]', 'Turning on logging on the server and client side. Defaults to false', false)
Expand Down

0 comments on commit 8eea09e

Please sign in to comment.