Trying to deploy to WebApp with some improvements.

This commit is contained in:
Rodrigo Rodriguez 2018-09-24 19:56:11 -03:00
parent 5b869c7313
commit b94b9952aa
3 changed files with 147 additions and 150 deletions

View file

@ -75,7 +75,6 @@ export class GBDeployer {
) {
let _this = this;
return new Promise((resolve, reject) => {
try {
let totalPackages = 0;
let additionalPath = GBConfigService.get("ADDITIONAL_DEPLOY_PATH");
let paths = [GBDeployer.deployFolder];
@ -225,10 +224,6 @@ export class GBDeployer {
resolve();
});
});
} catch (err) {
logger.error(err);
reject(err);
}
});
}

View file

@ -58,7 +58,7 @@
"request-promise-native": "^1.0.5",
"sequelize": "^4.38.1",
"sequelize-typescript": "^0.6.6",
"sqlite3": "^4.0.2",
"sqlite3": "^3.1.13",
"swagger-client": "^3.8.21",
"tedious": "^2.6.4",
"url-join": "^4.0.0",

View file

@ -156,6 +156,8 @@ export class GBServer {
throw `Operating storage is out of sync or there is a storage connection error. Try setting STORAGE_SYNC to true in .env file. Error: ${
error.message
}.`;
} else {
throw `Cannot connect to operating storage: ${error.message}.`;
}
}
@ -178,7 +180,7 @@ export class GBServer {
return core;
} catch (err) {
logger.info(`STOP: ${err} ${err.stack ? err.stack : ""}`);
logger.error(`STOP: ${err} ${err.stack ? err.stack : ""}`);
process.exit(1);
}
})();