Update main.ts
Browse files
main.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import { serve } from "./deps.ts";
|
| 2 |
-
|
| 3 |
|
| 4 |
console.log(`Server started on port ${PORT}`);
|
| 5 |
Deno.serve(
|
| 6 |
-
{ port:
|
| 7 |
(_req) => new Response("Hello, world from Deno")
|
| 8 |
);
|
|
|
|
| 1 |
import { serve } from "./deps.ts";
|
| 2 |
+
const PORT = 8000;
|
| 3 |
|
| 4 |
console.log(`Server started on port ${PORT}`);
|
| 5 |
Deno.serve(
|
| 6 |
+
{ port: PORT, hostname: "0.0.0.0" },
|
| 7 |
(_req) => new Response("Hello, world from Deno")
|
| 8 |
);
|