Skip to content

Commit 93a920b

Browse files
committed
break: default port 5000 -> 8080;
- Closes #124
1 parent 0cf66d8 commit 93a920b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/sirv-cli/bin.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ const pkg = require('./package');
66
sade('sirv [dir]')
77
.version(pkg.version)
88
.describe('Run a static file server')
9-
.example('build --cors --port 8080')
9+
.example('build --cors --port 8888')
1010
.example('public --quiet --etag --maxage 31536000 --immutable')
1111
.example('public --http2 --key priv.pem --cert cert.pem')
1212
.example('public -qeim 31536000')
13-
.example('--port 8080 --etag')
13+
.example('--port 8888 --etag')
1414
.example('--host --dev')
1515
.option('-D, --dev', 'Enable "dev" mode')
1616
.option('-e, --etag', 'Enable "ETag" header')
@@ -28,7 +28,7 @@ sade('sirv [dir]')
2828
.option('-I, --ignores', 'Any URL pattern(s) to ignore "index.html" assumptions')
2929
.option('-q, --quiet', 'Disable logging to terminal')
3030
.option('-H, --host', 'Hostname to bind', 'localhost')
31-
.option('-p, --port', 'Port to bind', 5000)
31+
.option('-p, --port', 'Port to bind', 8080)
3232
.action(boot)
3333
.parse(process.argv, {
3434
default: {

tests/sirv-cli.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ help('--help', () => {
3535
-I, --ignores Any URL pattern(s) to ignore "index.html" assumptions
3636
-q, --quiet Disable logging to terminal
3737
-H, --host Hostname to bind (default localhost)
38-
-p, --port Port to bind (default 5000)
38+
-p, --port Port to bind (default 8080)
3939
-v, --version Displays current version
4040
-h, --help Displays this message
4141
4242
Examples
43-
$ sirv build --cors --port 8080
43+
$ sirv build --cors --port 8888
4444
$ sirv public --quiet --etag --maxage 31536000 --immutable
4545
$ sirv public --http2 --key priv.pem --cert cert.pem
4646
$ sirv public -qeim 31536000
47-
$ sirv --port 8080 --etag
47+
$ sirv --port 8888 --etag
4848
$ sirv --host --dev
4949
`
5050
);

0 commit comments

Comments
 (0)