summary refs log tree commit diff
path: root/src/gateway/start.ts
blob: 2000522a48c7cb1f180bf2575a77cfe4400718df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
process.on("uncaughtException", console.error);
process.on("unhandledRejection", console.error);

import { Server } from "./Server";
import { config } from "dotenv";
config();

let port = Number(process.env.PORT);
if (isNaN(port)) port = 3002;

const server = new Server({
	port,
});
server.start();