The cdn now only starts if the gbucket.json file has been provided
This commit is contained in:
parent
dfeb238469
commit
b8c8fa700b
1
app.ts
1
app.ts
@ -19,6 +19,7 @@ mongoose.connect(process.env.MONGOOSE_STRING || '', (e: CallbackError) => {
|
|||||||
const start = () => {
|
const start = () => {
|
||||||
api.startServer(parseInt(process.env.API_PORT || ''));
|
api.startServer(parseInt(process.env.API_PORT || ''));
|
||||||
shortener.startServer(parseInt(process.env.SHORTENER_PORT || ''));
|
shortener.startServer(parseInt(process.env.SHORTENER_PORT || ''));
|
||||||
|
if (!process.env.DISABLE_CONTENT_DELIVERY)
|
||||||
contentDelivery.startServer(parseInt(process.env.CDN_PORT || ''));
|
contentDelivery.startServer(parseInt(process.env.CDN_PORT || ''));
|
||||||
actionSocket.startServer(parseInt(process.env.AS_PORT || ''));
|
actionSocket.startServer(parseInt(process.env.AS_PORT || ''));
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user