#!/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 ../zfjg-ui/dist/** ./nginx/html/dist # copy jar echo "begin copy zfjg-gateway " cp ../zfjg-gateway/target/zfjg-gateway.jar ./ruoyi/gateway/jar echo "begin copy zfjg-auth " cp ../zfjg-auth/target/zfjg-auth.jar ./ruoyi/auth/jar echo "begin copy zfjg-visual " cp ../zfjg-visual/zfjg-monitor/target/zfjg-visual-monitor.jar ./ruoyi/visual/monitor/jar echo "begin copy zfjg-modules-system " cp ../zfjg-modules/zfjg-system/target/zfjg-modules-system.jar ./ruoyi/modules/system/jar echo "begin copy zfjg-modules-file " cp ../zfjg-modules/zfjg-file/target/zfjg-modules-file.jar ./ruoyi/modules/file/jar echo "begin copy zfjg-modules-job " cp ../zfjg-modules/zfjg-job/target/zfjg-modules-job.jar ./ruoyi/modules/job/jar echo "begin copy zfjg-modules-gen " cp ../zfjg-modules/zfjg-gen/target/zfjg-modules-gen.jar ./ruoyi/modules/gen/jar