summaryrefslogtreecommitdiff
path: root/cgithub/src
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-08-11 08:27:26 -0400
committerJoe Mou <dev@mou.fo>2026-08-11 08:30:10 -0400
commit2b4a69720b53480d82cf296ac5dbe4614d9470b9 (patch)
treef1a617c74017951df5c4f5dba7a5e068f813f6a1 /cgithub/src
parent5526d976f645def4caae9fbd2c1d75349029764e (diff)
Deploy only to Cloudflare Workers
The Node server entry, esbuild bundle, and Makefile rsync/systemd deploy are gone; wrangler dev and wrangler deploy are the only paths now, so the dev:cf/deploy:cf scripts take over the plain dev/deploy names. @hono/ node-server and esbuild drop out with src/index.ts, and the README's systemd socket and nginx snippets go with them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'cgithub/src')
-rw-r--r--cgithub/src/index.ts28
1 files changed, 0 insertions, 28 deletions
diff --git a/cgithub/src/index.ts b/cgithub/src/index.ts
deleted file mode 100644
index 65c46d9..0000000
--- a/cgithub/src/index.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { createAdaptorServer, serve } from "@hono/node-server";
-import { serveStatic } from "@hono/node-server/serve-static";
-import { Eta } from "eta";
-import { Hono } from "hono";
-import path from "node:path";
-import url from "node:url";
-import { createApp } from "./app.ts";
-
-const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
-
-const eta = new Eta({ views: path.join(__dirname, "..", "views") });
-
-const app = new Hono();
-app.use("/static/*", serveStatic({ root: path.join(__dirname, "..", "public") }));
-app.route("/", createApp(eta));
-
-if (process.env.LISTEN_FDS === "1") {
- const server = createAdaptorServer(app);
- // Listen on SD_LISTEN_FDS_START.
- server.listen({ fd: 3 }, () => {
- console.log("Server running via systemd socket activation");
- });
-} else {
- const port = parseInt(process.env.PORT || "3000", 10);
- serve({ fetch: app.fetch, port }, (info) => {
- console.log(`Server running on http://localhost:${info.port}`);
- });
-}