zhibo/deploy_my_records_fix.bat

50 lines
1.2 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 部署"我的记录"功能修复
echo ========================================
echo.
echo 步骤1: 编译后端项目...
cd Zhibo\zhibo-h
call mvn clean package -DskipTests -pl crmeb-front -am
if %ERRORLEVEL% NEQ 0 (
echo [错误] 编译失败!
pause
exit /b 1
)
echo.
echo [成功] 编译完成!
echo.
echo 步骤2: 上传JAR包到服务器...
scp crmeb-front\target\crmeb-front.jar root@1.15.149.240:/www/wwwroot/zhibo/
if %ERRORLEVEL% NEQ 0 (
echo [错误] 上传失败!
pause
exit /b 1
)
echo.
echo [成功] 上传完成!
echo.
echo 步骤3: 重启后端服务...
ssh root@1.15.149.240 "cd /www/wwwroot/zhibo && ./restart.sh"
echo.
echo ========================================
echo 部署完成!
echo ========================================
echo.
echo 请执行以下操作验证:
echo 1. 在MySQL中执行 complete_user_activity_data.sql 添加测试数据
echo 2. 在App上退出登录重新登录
echo 3. 进入"我的记录"页面查看数据
echo 4. 查看服务器日志: tail -f /www/wwwroot/zhibo/logs/crmeb-front.log ^| grep "API"
echo.
pause