copy.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/usky_cloud_20240222.sql ./mysql/db
  10. cp ../sql/usky_config.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 ../base-components/gateway/target/gateway.jar ./ruoyi/gateway/jar
  17. echo "begin copy ruoyi-monitor "
  18. cp ../base-components/monitor/target/monitor.jar ./ruoyi/visual/monitor/jar
  19. echo "begin copy ruoyi-modules-system "
  20. cp ../base-modules/service-system/service-system-biz/target/service-system-biz.jar ./ruoyi/modules/system/jar
  21. echo "begin copy ruoyi-modules-file "
  22. cp ../base-modules/service-file/target/service-file.jar ./ruoyi/modules/file/jar
  23. echo "begin copy ruoyi-modules-job "
  24. cp ../base-modules/service-job/target/service-job.jar ./ruoyi/modules/job/jar
  25. echo "begin copy ruoyi-modules-gen "
  26. cp ../base-modules/service-gen/target/service-gen.jar ./ruoyi/modules/gen/jar