summary refs log tree commit diff
path: root/src/cdn/start.ts
blob: c22984fad5b4027259cbca0aebbabc20b39bcc05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require("module-alias/register");
import dotenv from "dotenv";
dotenv.config();

import { CDNServer } from "./Server";
const server = new CDNServer({ port: Number(process.env.PORT) || 3003 });
server
	.start()
	.then(() => {
		console.log("[Server] started on :" + server.options.port);
	})
	.catch((e) => console.error("[Server] Error starting: ", e));

module.exports = server;