fixed server on remote

This commit is contained in:
root
2026-02-07 09:17:54 +00:00
parent 1c97dccced
commit d1df77417d
2 changed files with 10 additions and 2 deletions

View File

@@ -2,8 +2,9 @@ module.exports = {
apps: [ apps: [
{ {
name: "year", name: "year",
script: "src/index.ts", script: "src/server.ts",
interpreter: "bun", interpreter: "/root/.bun/bin/bun",
interpreter_args: "run",
}, },
], ],
}; };

7
src/server.ts Normal file
View File

@@ -0,0 +1,7 @@
#!/root/.bun/bin/bun
import app from "./index.ts";
Bun.serve({
fetch: app.fetch,
port: app.port,
});