fix: deploy show tips

This commit is contained in:
2025-05-29 11:43:46 +08:00
parent 613ed47474
commit 78d2b2b161
4 changed files with 9 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ import { installDeps } from '@/uitls/npm.ts';
import { upload } from '@/module/download/upload.ts';
import { getHash } from '@/uitls/hash.ts';
import { queryAppVersion } from '@/query/app-manager/query-app.ts';
import { logger } from '@/module/logger.ts';
/**
* 获取package.json 中的 basename, version, user, appKey
* @returns
@@ -126,7 +127,8 @@ const command = new Command('deploy')
console.error(chalk.red('查询应用版本失败'), res2.message);
return;
}
const { id, data, ...rest } = res2.data?.app || {};
// const { id, data, ...rest } = res.data?.app || {};
const { id, data, ...rest } = res2.data || {};
if (id && !update) {
console.log(chalk.green('id: '), id);
if (!org) {
@@ -139,6 +141,7 @@ const command = new Command('deploy')
} else {
// console.log('rest', JSON.stringify(res.data, null, 2));
}
logger.debug('deploy success', res2.data);
if (id && showBackend) {
console.log('\n');
// 获取当前应用的key