Skip to content

Commit

Permalink
fix(core.gbapp): Azure deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed May 16, 2019
1 parent 01b8dd5 commit 49e1743
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core.gbapp/services/GBConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 49e1743

Please sign in to comment.