new(all): Custom Domain support per bot.
This commit is contained in:
parent
5a81d15359
commit
b50735236d
2 changed files with 8 additions and 5 deletions
|
@ -638,7 +638,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
|
|
||||||
const vm = new GBVMService();
|
const vm = new GBVMService();
|
||||||
await vm.loadDialogPackage(localPath, min, this.core, this);
|
await vm.loadDialogPackage(localPath, min, this.core, this);
|
||||||
GBLog.info(`Dialogs (.gbdialog) for ${min.botId} loaded.`);
|
GBLog.verbose(`Dialogs (.gbdialog) for ${min.botId} loaded.`);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '.gbtheme':
|
case '.gbtheme':
|
||||||
|
|
|
@ -171,17 +171,20 @@ export class GBMinService {
|
||||||
|
|
||||||
// Calls mountBot event to all bots.
|
// Calls mountBot event to all bots.
|
||||||
|
|
||||||
const bar1 = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic);
|
const bar1 = new cliProgress.SingleBar({
|
||||||
|
format: '[{bar}] {botId} {value}/{total}'
|
||||||
|
}, cliProgress.Presets.shades_classic);
|
||||||
let i = 0;
|
let i = 0;
|
||||||
bar1.start(100, i);
|
bar1.start(100, i, {botId: "Boot"});
|
||||||
|
|
||||||
await CollectionUtil.asyncForEach(instances, async instance => {
|
await CollectionUtil.asyncForEach(instances, async instance => {
|
||||||
try {
|
try {
|
||||||
bar1.update(i);
|
bar1.update(i, {botId: instance.botId});
|
||||||
|
|
||||||
await this.mountBot(instance);
|
await this.mountBot(instance);
|
||||||
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
|
||||||
instance.botId, `${instance.botId}.gbkb`);
|
instance.botId, `${instance.botId}.gbkb`);
|
||||||
|
i++;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
|
||||||
}
|
}
|
||||||
|
@ -293,7 +296,7 @@ export class GBMinService {
|
||||||
}
|
}
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
GBLog.info(`GeneralBots(${instance.engineName}) listening on: ${url}.`);
|
GBLog.verbose(`GeneralBots(${instance.engineName}) listening on: ${url}.`);
|
||||||
|
|
||||||
// Serves individual URL for each bot user interface.
|
// Serves individual URL for each bot user interface.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue