diff options
Diffstat (limited to 'src/cdn/start.ts')
-rw-r--r-- | src/cdn/start.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cdn/start.ts b/src/cdn/start.ts new file mode 100644 index 00000000..71681b40 --- /dev/null +++ b/src/cdn/start.ts @@ -0,0 +1,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; |