mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 11:52:52 -05:00

By default, `deno serve` will assign port 8000 (like `Deno.serve`). Users may choose a different port using `--port`. `deno serve /tmp/file.ts` `server.ts`: ```ts export default { fetch(req) { return new Response("hello world!\n"); }, }; ```
5 lines
86 B
JSON
5 lines
86 B
JSON
{
|
|
"args": "serve --port 12345 main.ts",
|
|
"output": "main.out",
|
|
"tempDir": true
|
|
}
|