From b8c8fa700bbbae7678d5246b4450bce1181d7dd5 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 8 Sep 2022 22:21:51 +0200 Subject: [PATCH] The cdn now only starts if the gbucket.json file has been provided --- app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.ts b/app.ts index cccde06..2f39aa4 100644 --- a/app.ts +++ b/app.ts @@ -19,6 +19,7 @@ mongoose.connect(process.env.MONGOOSE_STRING || '', (e: CallbackError) => { const start = () => { api.startServer(parseInt(process.env.API_PORT || '')); shortener.startServer(parseInt(process.env.SHORTENER_PORT || '')); - contentDelivery.startServer(parseInt(process.env.CDN_PORT || '')); + if (!process.env.DISABLE_CONTENT_DELIVERY) + contentDelivery.startServer(parseInt(process.env.CDN_PORT || '')); actionSocket.startServer(parseInt(process.env.AS_PORT || '')); } \ No newline at end of file