summaryrefslogtreecommitdiff
path: root/hooks/main.ts
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2025-05-12 09:40:12 -0700
committerElizabeth <me@liz.coffee>2025-05-26 14:15:42 -0700
commitd51c9d74857aca3c2f172609297266968bc7f809 (patch)
tree64327f9cc4219729aa11af32d7d4c70cddfc2292 /hooks/main.ts
parent30729a0cf707d9022bae0a7baaba77379dc31fd5 (diff)
downloadci-d51c9d74857aca3c2f172609297266968bc7f809.tar.gz
ci-d51c9d74857aca3c2f172609297266968bc7f809.zip
The big refactor TM
Diffstat (limited to 'hooks/main.ts')
-rw-r--r--hooks/main.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/hooks/main.ts b/hooks/main.ts
new file mode 100644
index 0000000..21a3f3f
--- /dev/null
+++ b/hooks/main.ts
@@ -0,0 +1,12 @@
+#!/usr/bin/env -S deno run --allow-env --allow-net --allow-run
+
+import { CiHookServer } from "./server/mod.ts";
+
+const server = new CiHookServer();
+
+const SERVER_CONFIG = {
+ host: "0.0.0.0",
+ port: 9000,
+};
+
+Deno.serve(SERVER_CONFIG, (request: Request) => server.serve(request));