add suanfa

This commit is contained in:
2026-06-18 10:43:27 +08:00
parent 58b1d4acff
commit d5f62e474d
3 changed files with 185 additions and 4 deletions
Vendored
+4 -4
View File
@@ -35,16 +35,16 @@ pipeline {
echo '🚀 开始部署前端文件...'
script {
// 确保目标目录存在
sh 'mkdir -p /app/www'
sh 'mkdir -p /app/suanfa/www'
// 清空旧文件
sh 'rm -rf /app/www/*'
sh 'rm -rf /app/suanfa/www/*'
// 复制新构建的 dist 文件到挂载目录
sh 'cp -r dist/* /app/www/'
sh 'cp -r dist/* /app/suanfa/www/'
echo '✅ 前端文件部署到 Web 服务目录完成!'
// 可选:列出部署的文件以便验证
sh 'ls -la /app/www/ | head -10'
sh 'ls -la /app/suanfa/www/ | head -10'
}
}
}