From f2aa6ad49f2fe3a8bd2fd2d204fbc1b5032b5317 Mon Sep 17 00:00:00 2001 From: Mathias Wagner <germannewsmaker@gmail.com> Date: Tue, 6 Sep 2022 20:51:32 +0200 Subject: [PATCH] Added the shortener, cdn & action socket to the app.ts --- app.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app.ts b/app.ts index aeb7330..cccde06 100644 --- a/app.ts +++ b/app.ts @@ -1,5 +1,8 @@ import mongoose, {CallbackError} from 'mongoose'; import * as api from './server/api'; +import * as shortener from './server/shortener'; +import * as contentDelivery from './server/contentDelivery'; +import * as actionSocket from './server/actionSocket'; // Load & check environment require('dotenv').config(); @@ -15,4 +18,7 @@ mongoose.connect(process.env.MONGOOSE_STRING || '', (e: CallbackError) => { // Start all servers const start = () => { api.startServer(parseInt(process.env.API_PORT || '')); + shortener.startServer(parseInt(process.env.SHORTENER_PORT || '')); + contentDelivery.startServer(parseInt(process.env.CDN_PORT || '')); + actionSocket.startServer(parseInt(process.env.AS_PORT || '')); } \ No newline at end of file