Skip to content

Commit

Permalink
非受管软件包(isUnmanaged为true) 启动时不加载元数据,在工作区初始化后deploy元数据
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhaolin committed Oct 15, 2024
1 parent 519f3d5 commit cffd1ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions services/service-package-loader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ module.exports = {
if (!packageInfo) {
return;
}
const { path : _path, datasource, isPackage } = packageInfo;
const { path : _path, datasource, isPackage, isUnmanaged } = packageInfo;
if (!_path) {
this.logger.error(`Please config packageInfo in your settings.`);
console.log(`service ${this.name} started`);
Expand All @@ -290,7 +290,10 @@ module.exports = {
await this.loadDataOnServiceStarted()
});

await this.loadPackageMetadataFiles(_path, this.name, datasource);
if (true != isUnmanaged) {
// 受管软件包加载元数据文件,非受管软件包不加载
await this.loadPackageMetadataFiles(_path, this.name, datasource);
}
if(isPackage !== false){
try {
let _packageInfo = {};
Expand Down

0 comments on commit cffd1ba

Please sign in to comment.