fix(all): Fixes in bot creation.
This commit is contained in:
parent
e45c25cf3e
commit
2dc6e327e8
1 changed files with 6 additions and 0 deletions
|
@ -161,10 +161,12 @@ export class GBServer {
|
|||
|
||||
// Creates a boot instance or load it from storage.
|
||||
|
||||
let runOnce = false;
|
||||
if (GBConfigService.get('STORAGE_SERVER')) {
|
||||
azureDeployer = await AzureDeployerService.createInstance(deployer);
|
||||
await core.initStorage();
|
||||
} else {
|
||||
runOnce = true;
|
||||
[GBServer.globals.bootInstance, azureDeployer] = await core['createBootInstanceEx'](
|
||||
core,
|
||||
null,
|
||||
|
@ -185,6 +187,10 @@ export class GBServer {
|
|||
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
|
||||
await core.syncDatabaseStructure();
|
||||
|
||||
if (runOnce){
|
||||
await core.saveInstance(GBServer.globals.bootInstance);
|
||||
}
|
||||
|
||||
// Deployment of local applications for the first time.
|
||||
|
||||
if (GBConfigService.get('DISABLE_WEB') !== 'true') {
|
||||
|
|
Loading…
Add table
Reference in a new issue