From 6169b1d783705fadd7946415bba5e8a01229a428 Mon Sep 17 00:00:00 2001 From: omar2205 Date: Wed, 29 Jun 2022 20:31:12 +0200 Subject: [PATCH] docs: add note about changing port or host (#311) --- docs/getting-started/running-locally.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/getting-started/running-locally.md b/docs/getting-started/running-locally.md index ed386a2b..3e05b5a6 100644 --- a/docs/getting-started/running-locally.md +++ b/docs/getting-started/running-locally.md @@ -33,6 +33,13 @@ passing the extra folder as an argument: `--watch=static/`. You should also add `routes/` to the watch list, so that the server restarts automatically whenever you add a new route. +If you want to change the port or host, modify the options bag of the `start()` +call in `main.ts` to include an explicit port number: + +```js +await start(manifest, { port: 3000 }); +``` + Combining all of this we get the following `deno run` command: ```