Skip to content

Commit

Permalink
fix(all): Migration to Linus.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jan 5, 2022
1 parent da881cb commit d2b2f29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ if [[ "$IN_PLACE_DEPLOYMENT" -ne "1" ]]; then
fi

##################################################################################################################################
echo "[General Bots Deployer]Finished successfully."
echo "[General Bots Deployer] Finished successfully."
1 change: 1 addition & 0 deletions packages/core.gbapp/services/GBDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ export class GBDeployer implements IGBDeployer {
// Install modules and compiles the web app.

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 });

GBLog.info(`Transpiling default.gbui...`);
Expand Down
10 changes: 5 additions & 5 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ export class GBServer {
await deployer.deployPackages(core, server, GBServer.globals.appPackages);
await core.syncDatabaseStructure();

// Deployment of local applications for the first time.

if (GBConfigService.get('DISABLE_WEB') !== 'true') {
deployer.setupDefaultGBUI();
}

GBLog.info(`Publishing instances...`);
const instances: IGBInstance[] = await core.loadAllInstances(
Expand Down Expand Up @@ -192,11 +197,6 @@ export class GBServer {
GBServer.globals.minService = minService;
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...`);

Expand Down

0 comments on commit d2b2f29

Please sign in to comment.