summary refs log tree commit diff
path: root/src/cdn/start.ts
blob: 71681b4031556da6ad314382fea3ceab61efccce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;