summary refs log tree commit diff
path: root/gateway/src/start.ts
blob: 09a547514ac534eb7af9c8a627a57a652a8292e1 (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();

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

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