fix(core.gbapp): Entire Web stack is optional now.

This commit is contained in:
Rodrigo Rodriguez 2020-04-02 22:02:50 -03:00
parent b6e3611636
commit 9652fcdb0b
3 changed files with 15 additions and 10 deletions

View file

@ -133,6 +133,9 @@ export class GBConfigService {
case 'REVERSE_PROXY':
value = undefined;
break;
case 'DISABLE_WEB':
value = "false";
break;
case 'STORAGE_ACQUIRE_TIMEOUT':
value = 40000;
break;

View file

@ -63,7 +63,7 @@ export class GBImporter {
}
const instance = await this.core.loadInstance(botId);
if (instance != null || instance.botId === null) {
if (instance != null && instance.botId === null) {
console.log(`Null BotId after load instance with botId: ${botId}.`);
}

View file

@ -182,7 +182,9 @@ export class GBServer {
// Deployment of local applications for the first time.
if (GBConfigService.get("DISABLE_WEB") !== "true") {
deployer.setupDefaultGBUI();
}
GBLog.info(`The Bot Server is in RUNNING mode...`);