The cdn now only starts if the gbucket.json file has been provided
This commit is contained in:
parent
dfeb238469
commit
b8c8fa700b
3
app.ts
3
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 || ''));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user