docs: add note about changing port or host (#311)
This commit is contained in:
@@ -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
|
`routes/` to the watch list, so that the server restarts automatically whenever
|
||||||
you add a new route.
|
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:
|
Combining all of this we get the following `deno run` command:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user