mirror of
https://github.com/hex248/year.git
synced 2026-02-07 10:17:14 +00:00
fixed server on remote
This commit is contained in:
@@ -2,8 +2,9 @@ module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "year",
|
||||
script: "src/index.ts",
|
||||
interpreter: "bun",
|
||||
script: "src/server.ts",
|
||||
interpreter: "/root/.bun/bin/bun",
|
||||
interpreter_args: "run",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
7
src/server.ts
Normal file
7
src/server.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/root/.bun/bin/bun
|
||||
import app from "./index.ts";
|
||||
|
||||
Bun.serve({
|
||||
fetch: app.fetch,
|
||||
port: app.port,
|
||||
});
|
||||
Reference in New Issue
Block a user