Skip to content

Commit 1c591cb

Browse files
lyzhovnikiansu
authored andcommitted
Update serve change listening port documentation (#6229)
* [docs] Change serve port flag and add example * [docs] Add --listen flag
1 parent ed5fb10 commit 1c591cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus/docs/deployment.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ npm install -g serve
1515
serve -s build
1616
```
1717

18-
The last command shown above will serve your static site on the port **5000**. Like many of [serve](https://github.com/zeit/serve)’s internal settings, the port can be adjusted using the `-p` or `--port` flags.
18+
The last command shown above will serve your static site on the port **5000**. Like many of [serve](https://github.com/zeit/serve)’s internal settings, the port can be adjusted using the `-l` or `--listen` flags:
19+
20+
```sh
21+
serve -s build -l 4000
22+
```
1923

2024
Run this command to get a full list of the options available:
2125

0 commit comments

Comments
 (0)