mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
45f9b32ef0
* Added fs events example. * Added docs for `deno test`. * Renamed file server example. * Unified markdown code types. * Removed plugin topics from TOC. * Fixed links.
22 lines
404 B
Markdown
22 lines
404 B
Markdown
## File server
|
|
|
|
This one serves a local directory in HTTP.
|
|
|
|
```shell
|
|
deno install --allow-net --allow-read https://deno.land/std/http/file_server.ts
|
|
```
|
|
|
|
Run it:
|
|
|
|
```shell
|
|
$ file_server .
|
|
Downloading https://deno.land/std/http/file_server.ts...
|
|
[...]
|
|
HTTP server listening on http://0.0.0.0:4500/
|
|
```
|
|
|
|
And if you ever want to upgrade to the latest published version:
|
|
|
|
```shell
|
|
$ file_server --reload
|
|
```
|