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