copy.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/sh
  2. # 复制项目的文件到对应docker路径,便于一键生成镜像。
  3. usage() {
  4. echo "Usage: sh copy.sh"
  5. exit 1
  6. }
  7. # copy sql
  8. echo "begin copy sql "
  9. cp ../sql/ry_20220814.sql ./mysql/db
  10. cp ../sql/ry_config_20220510.sql ./mysql/db
  11. # copy html
  12. echo "begin copy html "
  13. cp -r ../ruoyi-ui/dist/** ./nginx/html/dist
  14. # copy jar
  15. echo "begin copy ruoyi-gateway "
  16. cp ../ruoyi-gateway/target/ruoyi-gateway.jar ./ruoyi/gateway/jar
  17. echo "begin copy ruoyi-auth "
  18. cp ../ruoyi-auth/target/ruoyi-auth.jar ./ruoyi/auth/jar
  19. echo "begin copy ruoyi-visual "
  20. cp ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar ./ruoyi/visual/monitor/jar
  21. echo "begin copy ruoyi-modules-system "
  22. cp ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar ./ruoyi/modules/system/jar
  23. echo "begin copy ruoyi-modules-file "
  24. cp ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar ./ruoyi/modules/file/jar
  25. echo "begin copy ruoyi-modules-job "
  26. cp ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar ./ruoyi/modules/job/jar
  27. echo "begin copy ruoyi-modules-gen "
  28. cp ../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar ./ruoyi/modules/gen/jar
  29. echo "begin copy ruoyi-modules-organization "
  30. cp ../ruoyi-modules/mz-organization/target/ruoyi-modules-organization.jar ./ruoyi/modules/organization/jar
  31. echo "begin copy ruoyi-modules-business "
  32. cp ../ruoyi-modules/mz-business/target/ruoyi-modules-business.jar ./ruoyi/modules/business/jar
  33. echo "begin copy ruoyi-modules-portal "
  34. cp ../ruoyi-modules/mz-portal/target/ruoyi-modules-portal.jar ./ruoyi/modules/portal/jar
  35. echo "begin copy ruoyi-modules-datasync "
  36. cp ../ruoyi-modules/mz-datasync/target/ruoyi-modules-datasync.jar ./ruoyi/modules/datasync/jar