fix(all): Migration to Linus.
This commit is contained in:
parent
da881cbaaf
commit
d2b2f29d55
3 changed files with 7 additions and 6 deletions
|
@ -91,4 +91,4 @@ if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
##################################################################################################################################
|
##################################################################################################################################
|
||||||
echo "[General Bots Deployer]Finished successfully."
|
echo "[General Bots Deployer] Finished successfully."
|
|
@ -809,6 +809,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
// Install modules and compiles the web app.
|
// Install modules and compiles the web app.
|
||||||
|
|
||||||
GBLog.info(`Installing modules default.gbui (It may take a few minutes)...`);
|
GBLog.info(`Installing modules default.gbui (It may take a few minutes)...`);
|
||||||
|
child_process.execSync(`rm -r node_modules`, { cwd: root });
|
||||||
child_process.execSync(`${npm} install`, { cwd: root });
|
child_process.execSync(`${npm} install`, { cwd: root });
|
||||||
|
|
||||||
GBLog.info(`Transpiling default.gbui...`);
|
GBLog.info(`Transpiling default.gbui...`);
|
||||||
|
|
10
src/app.ts
10
src/app.ts
|
@ -159,6 +159,11 @@ export class GBServer {
|
||||||
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
|
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
|
||||||
await core.syncDatabaseStructure();
|
await core.syncDatabaseStructure();
|
||||||
|
|
||||||
|
// Deployment of local applications for the first time.
|
||||||
|
|
||||||
|
if (GBConfigService.get('DISABLE_WEB') !== 'true') {
|
||||||
|
deployer.setupDefaultGBUI();
|
||||||
|
}
|
||||||
|
|
||||||
GBLog.info(`Publishing instances...`);
|
GBLog.info(`Publishing instances...`);
|
||||||
const instances: IGBInstance[] = await core.loadAllInstances(
|
const instances: IGBInstance[] = await core.loadAllInstances(
|
||||||
|
@ -192,11 +197,6 @@ export class GBServer {
|
||||||
GBServer.globals.minService = minService;
|
GBServer.globals.minService = minService;
|
||||||
await minService.buildMin(instances);
|
await minService.buildMin(instances);
|
||||||
|
|
||||||
// Deployment of local applications for the first time.
|
|
||||||
|
|
||||||
if (GBConfigService.get('DISABLE_WEB') !== 'true') {
|
|
||||||
deployer.setupDefaultGBUI();
|
|
||||||
}
|
|
||||||
|
|
||||||
GBLog.info(`The Bot Server is in RUNNING mode...`);
|
GBLog.info(`The Bot Server is in RUNNING mode...`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue