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

@@ -430,7 +430,7 @@ const packCommand = new Command('pack')
}
if (opts.publish) {
// 运行 deploy 命令
const runDeployCommand = 'envision pack-deploy ' + value.outputFilePath + ' -k ' + appKey;
// const runDeployCommand = 'envision pack-deploy ' + value.outputFilePath + ' -k ' + appKey;
const [_app, _command] = process.argv;
let deployDist = opts.isTar ? value.outputFilePath : packDist;
const deployCommand = [_app, _command, 'deploy', deployDist, '-k', appKey, '-v', version, '-u'];
@@ -443,8 +443,8 @@ const packCommand = new Command('pack')
if (opts.yes) {
deployCommand.push('-y', 'yes');
}
console.log(chalk.blue('deploy doing: '), deployCommand.slice(2).join(' '), '\n\n');
console.log('pack deploy services', chalk.blue('example: '), runDeployCommand);
console.log(chalk.blue('deploy doing: '), deployCommand.slice(2).join(' '), '\n');
// console.log('pack deploy services', chalk.blue('example: '), runDeployCommand);
program.parse(deployCommand);
}