Update serve change listening port documentation (#6229)

* [docs] Change serve port flag and add example

* [docs] Add --listen flag
This commit is contained in:
Nikita Lyzhov
2019-01-20 22:46:50 +02:00
committed by Ian Sutherland
parent ed5fb1066b
commit 1c591cb7a4

View File

@@ -15,7 +15,11 @@ npm install -g serve
serve -s build
```
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.
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:
```sh
serve -s build -l 4000
```
Run this command to get a full list of the options available: