diff --git a/Cunkebao/devlop.py b/Cunkebao/devlop.py index b96ddca5..f1aecf46 100644 --- a/Cunkebao/devlop.py +++ b/Cunkebao/devlop.py @@ -8,7 +8,7 @@ zip_name = 'dist.zip' # 上传到服务器的 zip 路径 remote_path = '/www/wwwroot/auto-devlop/ckb-operation/dist.zip' # 服务器上的临时zip路径 server_ip = '42.194.245.239' -server_port = 6523 +server_port = 6523 server_user = 'yongpxu' server_pwd = 'Aa123456789.' # 服务器 dist 相关目录 @@ -32,14 +32,14 @@ def error(msg): def step(msg): print(f"\n\033[35m==== {msg} ====" + "\033[0m") -# 1. 先运行 yarn build -step('Step 1: 构建项目 (yarn build)') -info('开始执行 yarn build...') -ret = os.system('yarn build') +# 1. 先运行 pnpm build +step('Step 1: 构建项目 (pnpm build)') +info('开始执行 pnpm build...') +ret = os.system('pnpm build') if ret != 0: - error('yarn build 失败,终止部署!') + error('pnpm build 失败,终止部署!') exit(1) -success('yarn build 完成') +success('pnpm build 完成') # 2. 打包 step('Step 2: 打包 dist 目录为 zip')