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