#!/bin/sh # 复制项目的文件到对应docker路径,便于一键生成镜像。 usage() { echo "Usage: sh copy.sh" exit 1 } # copy sql echo "begin copy sql " cp ../sql/ry_20220814.sql ./mysql/db cp ../sql/ry_config_20220510.sql ./mysql/db # copy html echo "begin copy html " cp -r ../lzga-ui/dist/** ./nginx/html/dist # copy jar echo "begin copy lzga-gateway " cp ../lzga-gateway/target/lzga-gateway.jar ./ruoyi/gateway/jar echo "begin copy lzga-auth " cp ../lzga-auth/target/lzga-auth.jar ./ruoyi/auth/jar echo "begin copy lzga-visual " cp ../lzga-visual/lzga-monitor/target/lzga-visual-monitor.jar ./ruoyi/visual/monitor/jar echo "begin copy lzga-modules-system " cp ../lzga-modules/lzga-system/target/lzga-modules-system.jar ./ruoyi/modules/system/jar echo "begin copy lzga-modules-file " cp ../lzga-modules/lzga-file/target/lzga-modules-file.jar ./ruoyi/modules/file/jar echo "begin copy lzga-modules-job " cp ../lzga-modules/lzga-job/target/lzga-modules-job.jar ./ruoyi/modules/job/jar echo "begin copy lzga-modules-gen " cp ../lzga-modules/lzga-gen/target/lzga-modules-gen.jar ./ruoyi/modules/gen/jar