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();
|
||||
this.initEndpointsDocs(server);
|
||||
|
||||
|
||||
GBServer.globals.server = server;
|
||||
|
||||
GBServer.globals.httpsServer = null;
|
||||
|
@ -225,7 +225,7 @@ export class GBServer {
|
|||
GBServer.globals.publicAddress
|
||||
);
|
||||
|
||||
if (instances. length === 0) {
|
||||
if (instances.length === 0) {
|
||||
if (GBConfigService.get('STORAGE_NAME')) {
|
||||
const instance = await importer.importIfNotExistsBotPackage(
|
||||
GBConfigService.get('BOT_ID'),
|
||||
|
@ -244,9 +244,10 @@ export class GBServer {
|
|||
await azureDeployer['runSearch'](instance);
|
||||
}
|
||||
}
|
||||
|
||||
await core['ensureFolders'](instances, deployer);
|
||||
|
||||
if (!GBConfigService.get('STORAGE_NAME')) {
|
||||
await core['ensureFolders'](instances, deployer);
|
||||
}
|
||||
GBServer.globals.bootInstance = instances[0];
|
||||
|
||||
// Builds minimal service infrastructure.
|
||||
|
|
Loading…
Add table
Reference in a new issue