new(whatsapp.gblib): Multiple service definition allowed per tenant.
This commit is contained in:
parent
4dcb581897
commit
b56b2db52f
3 changed files with 3 additions and 6 deletions
|
@ -1,2 +1,2 @@
|
||||||
[config]
|
[config]
|
||||||
command = deploy.cmd
|
command = bash ./deploy.sh
|
|
@ -104,7 +104,6 @@ export class GuaribasInstance extends Model<GuaribasInstance>
|
||||||
@Column({ type: DataType.STRING(64) })
|
@Column({ type: DataType.STRING(64) })
|
||||||
public translatorKey: string;
|
public translatorKey: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(255))
|
|
||||||
@Column({ type: DataType.STRING(128) })
|
@Column({ type: DataType.STRING(128) })
|
||||||
public translatorEndpoint: string;
|
public translatorEndpoint: string;
|
||||||
|
|
||||||
|
@ -207,7 +206,6 @@ export class GuaribasInstance extends Model<GuaribasInstance>
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public nlpKey: string;
|
public nlpKey: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(255))
|
|
||||||
@Column({ type: DataType.STRING(512) })
|
@Column({ type: DataType.STRING(512) })
|
||||||
public nlpEndpoint: string;
|
public nlpEndpoint: string;
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ export class GBDeployer implements IGBDeployer {
|
||||||
let paths = [urlJoin(process.env.PWD, GBDeployer.deployFolder), urlJoin(process.env.PWD, GBDeployer.workFolder)];
|
let paths = [urlJoin(process.env.PWD, GBDeployer.deployFolder), urlJoin(process.env.PWD, GBDeployer.workFolder)];
|
||||||
const additionalPath = GBConfigService.get('ADDITIONAL_DEPLOY_PATH');
|
const additionalPath = GBConfigService.get('ADDITIONAL_DEPLOY_PATH');
|
||||||
if (additionalPath !== undefined && additionalPath !== '') {
|
if (additionalPath !== undefined && additionalPath !== '') {
|
||||||
paths = paths.concat(additionalPath.toLowerCase().split(';'));
|
paths = paths.concat(additionalPath.split(';'));
|
||||||
}
|
}
|
||||||
const botPackages: string[] = [];
|
const botPackages: string[] = [];
|
||||||
const gbappPackages: string[] = [];
|
const gbappPackages: string[] = [];
|
||||||
|
@ -146,11 +146,10 @@ export class GBDeployer implements IGBDeployer {
|
||||||
|
|
||||||
// For each folder, checks its extensions looking for valid packages.
|
// For each folder, checks its extensions looking for valid packages.
|
||||||
|
|
||||||
element = element.toLowerCase();
|
|
||||||
if (element === '.') {
|
if (element === '.') {
|
||||||
GBLog.info(`Ignoring ${element}...`);
|
GBLog.info(`Ignoring ${element}...`);
|
||||||
} else {
|
} else {
|
||||||
const name = Path.basename(element).toLowerCase();
|
const name = Path.basename(element);
|
||||||
|
|
||||||
// Skips what does not need to be loaded.
|
// Skips what does not need to be loaded.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue