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