blob: 1fdea22e357f6f251fa3b9a5e6578c698f3da607 (
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;
|