feat: add Railway deploy workflow and Bun server\n\n- Bun HTTP server listening on PORT\n- start script for Nixpacks\n- GitHub Action for Railway deploy

This commit is contained in:
tedspare
2025-11-18 16:17:25 -05:00
parent 2873ea9c40
commit 91a79e7ae1
3 changed files with 51 additions and 1 deletions

View File

@@ -1 +1,12 @@
console.log("Hello via Bun!");
const port = Number(process.env.PORT || 3000);
const server = Bun.serve({
port,
fetch(_req) {
return new Response("Hello via Bun!", {
headers: { "content-type": "text/plain; charset=utf-8" },
});
},
});
console.log(`Server running on http://localhost:${server.port}`);