fix(core.gbapp): Azure deployment.

This commit is contained in:
Rodrigo Rodriguez 2019-05-16 12:36:11 -03:00
parent 49e174395c
commit f1b8eb2fad
2 changed files with 3 additions and 2 deletions

View file

@ -43,10 +43,10 @@ import { GBLog } from 'botlib';
*/
export class GBConfigService {
public static getServerPort(): number {
if (process.env.PORT !== null) {
if (process.env.PORT) {
return Number(process.env.PORT);
}
if (process.env.port !== null) {
if (process.env.port) {
return Number(process.env.port);
}

View file

@ -91,6 +91,7 @@ export class GBDeployer {
return new Promise(
(resolve: any, reject: any): any => {
GBLog.info(`PWD ${process.env.PWD}...`);
let totalPackages = 0;
const additionalPath = GBConfigService.get('ADDITIONAL_DEPLOY_PATH');
let paths = [GBDeployer.deployFolder];