summary refs log tree commit diff
path: root/src/gateway/start.ts
blob: 97420d7ece82e6da5974c0603f296f1ab8ef2030 (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 { config } from "dotenv";
import { Server } from "./Server";
config();

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

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