Skip to content

Commit

Permalink
Update serve change listening port documentation (#6229)
Browse files Browse the repository at this point in the history
* [docs] Change serve port flag and add example

* [docs] Add --listen flag
  • Loading branch information
lyzhovnik authored and iansu committed Jan 20, 2019
1 parent ed5fb10 commit 1c591cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docusaurus/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 1c591cb

Please sign in to comment.