mirror of
https://github.com/Dokploy/examples
synced 2025-06-26 18:15:52 +00:00
feat: Configure Deno server to listen on all interfaces and specific port
This commit is contained in:
parent
76005a3603
commit
e46a219e37
@ -7,4 +7,4 @@ if (import.meta.main) {
|
|||||||
console.log("Add 2 + 3 =", add(2, 3));
|
console.log("Add 2 + 3 =", add(2, 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
Deno.serve(() => new Response("Hello, world!"));
|
Deno.serve({ hostname: "0.0.0.0", port: 8000 }, () => new Response("Hello, world!"));
|
Loading…
Reference in New Issue
Block a user