aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index f20fee6..4d0821c 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -14,7 +14,10 @@ const app = new Elysia()
.get("/c", () => get_create())
.post("/c", ({ body }) => post_c(body, sql))
-app.listen(3000)
+app.listen({
+ port: 3000,
+ hostname: '0.0.0.0'
+})
console.log(
`listening at ${app.server?.hostname}:${app.server?.port}`