new(core.gbapp): New FIND keyword for General Bots BASIC.
This commit is contained in:
parent
c8a7201488
commit
9b9c79fbb4
4 changed files with 4 additions and 1 deletions
|
@ -545,7 +545,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
|
|
||||||
public async callGBAppCompiler(gbappPath: string, core: IGBCoreService,
|
public async callGBAppCompiler(gbappPath: string, core: IGBCoreService,
|
||||||
appPackages: any[] = undefined, appPackagesProcessed: number = 0) {
|
appPackages: any[] = undefined, appPackagesProcessed: number = 0) {
|
||||||
GBLog.info(`Deploying General Bots Application (.gbapp) or Library (.gblib): ${Path.basepath(gbappPath)}...`);
|
GBLog.info(`Deploying General Bots Application (.gbapp) or Library (.gblib): ${Path.basename(gbappPath)}...`);
|
||||||
let folder = Path.join(gbappPath, 'node_modules');
|
let folder = Path.join(gbappPath, 'node_modules');
|
||||||
if (process.env.GBAPP_DISABLE_COMPILE !== "true") {
|
if (process.env.GBAPP_DISABLE_COMPILE !== "true") {
|
||||||
if (!Fs.existsSync(folder)) {
|
if (!Fs.existsSync(folder)) {
|
||||||
|
|
|
@ -210,6 +210,9 @@ export class GBMinService {
|
||||||
const { min, adapter, conversationState } = await this.buildBotAdapter(instance, GBServer.globals.sysPackages);
|
const { min, adapter, conversationState } = await this.buildBotAdapter(instance, GBServer.globals.sysPackages);
|
||||||
GBServer.globals.minInstances.push(min);
|
GBServer.globals.minInstances.push(min);
|
||||||
|
|
||||||
|
|
||||||
|
this.deployer.deployPackage(min, 'packages/default.gbdialog');
|
||||||
|
|
||||||
// Install per bot deployed packages.
|
// Install per bot deployed packages.
|
||||||
|
|
||||||
let packagePath = `work/${min.botId}.gbdialog`;
|
let packagePath = `work/${min.botId}.gbdialog`;
|
||||||
|
|
Loading…
Add table
Reference in a new issue