summaryrefslogtreecommitdiff
path: root/server/mod.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-06-20 14:53:38 -0700
committerElizabeth Hunt <me@liz.coffee>2025-06-20 14:53:38 -0700
commitd4791f3d357634daf506fb8f91cc5332a794c421 (patch)
tree1bb01d2d4d8fa74d83bb6f99f2c8aa4146ca2d11 /server/mod.ts
parentd7e8d31c94cd713a2f4cf799e20e993acc69e361 (diff)
downloadci-d4791f3d357634daf506fb8f91cc5332a794c421.tar.gz
ci-d4791f3d357634daf506fb8f91cc5332a794c421.zip
Move to nodejs
Diffstat (limited to 'server/mod.ts')
-rw-r--r--server/mod.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/server/mod.ts b/server/mod.ts
deleted file mode 100644
index 1d168d2..0000000
--- a/server/mod.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/usr/bin/env -S deno run --allow-env --allow-net --allow-run
-
-export * from "./ci.ts";
-export * from "./health.ts";
-export * from "./job.ts";
-
-import { CiHookServer } from "./mod.ts";
-import { Either, type IEither } from "@emprespresso/pengueno";
-const server = new CiHookServer();
-
-export const runServer = (
- port: number,
- host: string,
-): Promise<IEither<Error, 0>> => {
- const serverConfig = {
- host,
- port,
- };
- return Either.fromFailable<Error, Deno.HttpServer>(() =>
- Deno.serve(serverConfig, (req) => server.serve(req)),
- ).flatMapAsync((server) => Either.fromFailableAsync(() => server.finished.then(() => 0)));
-};