www: new fenced code block design (#1629)
This commit is contained in:
@@ -8,7 +8,7 @@ The next step after scaffolding out a new project, is to actually start it. To
|
||||
do this you can just `deno task start`. Environment variables will be
|
||||
automatically read from `.env`.
|
||||
|
||||
```
|
||||
```sh Terminal
|
||||
$ deno task start
|
||||
Watcher Process started.
|
||||
🍋 Fresh ready
|
||||
@@ -38,19 +38,19 @@ 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
|
||||
```js main.ts
|
||||
await start(manifest, { port: 3000 });
|
||||
```
|
||||
|
||||
You can also change the port by setting the `PORT` environment variable:
|
||||
|
||||
```
|
||||
```sh Terminal
|
||||
$ PORT=3000 deno task start
|
||||
```
|
||||
|
||||
Combining all of this we get the following `deno run` command:
|
||||
|
||||
```
|
||||
```sh Terminal
|
||||
$ deno run --allow-net --allow-read --allow-env --allow-run --watch=static/,routes/ main.ts
|
||||
Watcher Process started.
|
||||
🍋 Fresh ready
|
||||
|
||||
Reference in New Issue
Block a user