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