mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
428 B
428 B
File server
This one serves a local directory in HTTP.
deno install --allow-net --allow-read https://deno.land/std@$STD_VERSION/http/file_server.ts
Run it:
$ file_server .
Downloading https://deno.land/std@$STD_VERSION/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:
file_server --reload