docs: add note about changing port or host (#311)

This commit is contained in:
omar2205
2022-06-29 18:31:12 +00:00
committed by GitHub
parent 5633fbae58
commit 6169b1d783
+7
View File
@@ -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:
```