1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-13 14:12:41 +01:00
server/gateway/src/start.ts
Flam3rboy fa31e7f8db gateway
2021-08-12 20:18:05 +02:00

15 lines
300 B
TypeScript

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();