wujingjing
2024-09-23 becef2c91b768673fb1e434d1932d8079778f21b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const { uploadFiles, customerList, checkCustomer, changeBranch } = require('./helper');
 
if (!customerList || customerList.length === 0) {
    logError(`请正确使用命令 “npm run deploy [customer1,customer2,customer3,...]”,
    部署到生产环境写法:customer:pro
    `);
    exit(); // 退出脚本
}
changeBranch();
 
checkCustomer('npm run deploy');
 
// uploadFiles();
try {
    execSync(`npx deploy ${myEnv}`, { stdio: 'inherit' });
} catch (error) {}