fix(core.gbapp): Azure deployment.
This commit is contained in:
parent
01b8dd57a5
commit
49e174395c
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue