mirror of
https://github.com/hex248/year.git
synced 2026-02-07 18:23:03 +00:00
fixed server on remote
This commit is contained in:
@@ -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
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