From 612885644de1df663dcf3ff89c2eea1b194d4f18 Mon Sep 17 00:00:00 2001 From: Nikita Lyzhov Date: Sat, 19 Jan 2019 13:32:08 +0200 Subject: [PATCH 1/2] [docs] Change serve port flag and add example --- docusaurus/docs/deployment.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docusaurus/docs/deployment.md b/docusaurus/docs/deployment.md index 2b287488e7f..134f29ff201 100644 --- a/docusaurus/docs/deployment.md +++ b/docusaurus/docs/deployment.md @@ -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` flag: + +```sh +serve -s build -l 4000 +``` Run this command to get a full list of the options available: From d93078d8e417d873c337b481434ce1afb74db739 Mon Sep 17 00:00:00 2001 From: Nikita Lyzhov Date: Sun, 20 Jan 2019 11:47:08 +0200 Subject: [PATCH 2/2] [docs] Add --listen flag --- docusaurus/docs/deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus/docs/deployment.md b/docusaurus/docs/deployment.md index 134f29ff201..58322318124 100644 --- a/docusaurus/docs/deployment.md +++ b/docusaurus/docs/deployment.md @@ -15,7 +15,7 @@ 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 `-l` flag: +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