fix(core.gbapp): Use of BOT_URL instead of relying on AZ.

This commit is contained in:
Rodrigo Rodriguez 2020-04-02 23:52:59 -03:00
parent 9c84b80037
commit 9e15b03d04

View file

@ -128,7 +128,7 @@ export class GBServer {
GBServer.globals.publicAddress = await core.ensureProxy(port); GBServer.globals.publicAddress = await core.ensureProxy(port);
} }
} else { } else {
const serverAddress = `https://${process.env.WEBSITE_SITE_NAME}.azurewebsites.net`; const serverAddress = process.env.BOT_URL;
GBLog.info(`Defining server address at ${serverAddress}...`); GBLog.info(`Defining server address at ${serverAddress}...`);
GBServer.globals.publicAddress = serverAddress; GBServer.globals.publicAddress = serverAddress;
} }