summary refs log tree commit diff
path: root/src/gateway/start.ts
blob: 84de674f7d3d1118d8d3e4221561883f103e4fe6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require("module-alias/register");
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();