FEAT => 本次更新项目为:

This commit is contained in:
超级老白兔
2025-08-12 17:07:42 +08:00
parent aa583e6748
commit 949930f2cf

View File

@@ -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')