summary refs log tree commit diff
path: root/src/start.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/start.ts')
-rw-r--r--src/start.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/start.ts b/src/start.ts

index 2fe360e2..22da628f 100644 --- a/src/start.ts +++ b/src/start.ts
@@ -5,5 +5,10 @@ import { Server } from "./Server"; import { config } from "dotenv"; config(); -const server = new Server(); +var port = Number(process.env.PORT); +if (isNaN(port)) port = 3002; + +const server = new Server({ + port, +}); server.listen();