mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-13 14:12:41 +01:00
15 lines
300 B
TypeScript
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();
|