new(all): TRUE multicloud.
This commit is contained in:
parent
016abf7aac
commit
3d1624ac23
1 changed files with 5 additions and 4 deletions
|
@ -88,7 +88,7 @@ export class GBServer {
|
||||||
|
|
||||||
const server = express();
|
const server = express();
|
||||||
this.initEndpointsDocs(server);
|
this.initEndpointsDocs(server);
|
||||||
|
|
||||||
GBServer.globals.server = server;
|
GBServer.globals.server = server;
|
||||||
|
|
||||||
GBServer.globals.httpsServer = null;
|
GBServer.globals.httpsServer = null;
|
||||||
|
@ -225,7 +225,7 @@ export class GBServer {
|
||||||
GBServer.globals.publicAddress
|
GBServer.globals.publicAddress
|
||||||
);
|
);
|
||||||
|
|
||||||
if (instances. length === 0) {
|
if (instances.length === 0) {
|
||||||
if (GBConfigService.get('STORAGE_NAME')) {
|
if (GBConfigService.get('STORAGE_NAME')) {
|
||||||
const instance = await importer.importIfNotExistsBotPackage(
|
const instance = await importer.importIfNotExistsBotPackage(
|
||||||
GBConfigService.get('BOT_ID'),
|
GBConfigService.get('BOT_ID'),
|
||||||
|
@ -244,9 +244,10 @@ export class GBServer {
|
||||||
await azureDeployer['runSearch'](instance);
|
await azureDeployer['runSearch'](instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await core['ensureFolders'](instances, deployer);
|
|
||||||
|
|
||||||
|
if (!GBConfigService.get('STORAGE_NAME')) {
|
||||||
|
await core['ensureFolders'](instances, deployer);
|
||||||
|
}
|
||||||
GBServer.globals.bootInstance = instances[0];
|
GBServer.globals.bootInstance = instances[0];
|
||||||
|
|
||||||
// Builds minimal service infrastructure.
|
// Builds minimal service infrastructure.
|
||||||
|
|
Loading…
Add table
Reference in a new issue