fix(core.gbapp): Entire Web stack is optional now.
This commit is contained in:
parent
b6e3611636
commit
9652fcdb0b
3 changed files with 15 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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}.`);
|
||||
}
|
||||
|
||||
|
|
|
@ -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...`);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue