Skip to content

Commit

Permalink
break: default port 5000 -> 8080;
Browse files Browse the repository at this point in the history
- Closes #124
  • Loading branch information
lukeed committed Dec 29, 2021
1 parent 0cf66d8 commit 93a920b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/sirv-cli/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const pkg = require('./package');
sade('sirv [dir]')
.version(pkg.version)
.describe('Run a static file server')
.example('build --cors --port 8080')
.example('build --cors --port 8888')
.example('public --quiet --etag --maxage 31536000 --immutable')
.example('public --http2 --key priv.pem --cert cert.pem')
.example('public -qeim 31536000')
.example('--port 8080 --etag')
.example('--port 8888 --etag')
.example('--host --dev')
.option('-D, --dev', 'Enable "dev" mode')
.option('-e, --etag', 'Enable "ETag" header')
Expand All @@ -28,7 +28,7 @@ sade('sirv [dir]')
.option('-I, --ignores', 'Any URL pattern(s) to ignore "index.html" assumptions')
.option('-q, --quiet', 'Disable logging to terminal')
.option('-H, --host', 'Hostname to bind', 'localhost')
.option('-p, --port', 'Port to bind', 5000)
.option('-p, --port', 'Port to bind', 8080)
.action(boot)
.parse(process.argv, {
default: {
Expand Down
6 changes: 3 additions & 3 deletions tests/sirv-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ help('--help', () => {
-I, --ignores Any URL pattern(s) to ignore "index.html" assumptions
-q, --quiet Disable logging to terminal
-H, --host Hostname to bind (default localhost)
-p, --port Port to bind (default 5000)
-p, --port Port to bind (default 8080)
-v, --version Displays current version
-h, --help Displays this message
Examples
$ sirv build --cors --port 8080
$ sirv build --cors --port 8888
$ sirv public --quiet --etag --maxage 31536000 --immutable
$ sirv public --http2 --key priv.pem --cert cert.pem
$ sirv public -qeim 31536000
$ sirv --port 8080 --etag
$ sirv --port 8888 --etag
$ sirv --host --dev
`
);
Expand Down

0 comments on commit 93a920b

Please sign in to comment.