copy.bat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @echo off
  2. echo.
  3. echo [信息] 复制文件到Docker目录
  4. echo.
  5. %~d0
  6. cd %~dp0
  7. cd ..
  8. echo 编译后端
  9. start /wait cmd /c "mvn clean package -P prod -Dmaven.test.skip=true"
  10. echo 编译前端
  11. cd vctgo-ui
  12. start /wait cmd /c "npm install"
  13. start /wait cmd /c "npm run build:prod"
  14. cd ..\docker
  15. echo 复制 sql
  16. xcopy ..\sql\vctgo_platform.sql .\mysql\db /y
  17. xcopy ..\sql\vctgo_config.sql .\mysql\db /y
  18. echo 复制 html
  19. xcopy ..\vctgo-ui\dist .\nginx\html\dist /s /e /y
  20. echo 复制 vctgo-gateway
  21. xcopy ..\vctgo-gateway\target\vctgo-gateway.jar .\vctgo\gateway\jar /y
  22. echo 复制 vctgo-auth
  23. xcopy ..\vctgo-auth\target\vctgo-auth.jar .\vctgo\auth\jar /y
  24. echo 复制 vctgo-demo
  25. xcopy ..\vctgo-demo\target\vctgo-demo.jar .\vctgo\demo\jar /y
  26. echo 复制 vctgo-monitor
  27. xcopy ..\vctgo-visual\vctgo-monitor\target\vctgo-monitor.jar .\vctgo\visual\monitor\jar /y
  28. echo 复制 vctgo-system
  29. xcopy ..\vctgo-modules\vctgo-system\target\vctgo-system.jar .\vctgo\modules\system\jar /y
  30. echo 复制 vctgo-file
  31. xcopy ..\vctgo-modules\vctgo-file\target\vctgo-file.jar .\vctgo\modules\file\jar /y
  32. echo 复制 vctgo-gen
  33. xcopy ..\vctgo-modules\vctgo-gen\target\vctgo-gen.jar .\vctgo\modules\gen\jar /y
  34. echo 复制 vctgo-job
  35. xcopy ..\vctgo-modules\vctgo-job\target\vctgo-job.jar .\vctgo\modules\job\jar /y
  36. pause