From 49e174395c8927965954be9dae4ab0630cda3893 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Thu, 16 May 2019 11:54:43 -0300 Subject: [PATCH] fix(core.gbapp): Azure deployment. --- packages/core.gbapp/services/GBConfigService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core.gbapp/services/GBConfigService.ts b/packages/core.gbapp/services/GBConfigService.ts index eea628ff8..3a2331c26 100644 --- a/packages/core.gbapp/services/GBConfigService.ts +++ b/packages/core.gbapp/services/GBConfigService.ts @@ -43,12 +43,12 @@ import { GBLog } from 'botlib'; */ export class GBConfigService { public static getServerPort(): number { - if (process.env.port !== undefined) { - return Number(process.env.port); - } - if (process.env.PORT !== undefined) { + if (process.env.PORT !== null) { return Number(process.env.PORT); } + if (process.env.port !== null) { + return Number(process.env.port); + } return 4242; }