copy.sh 432 B

12345678910111213141516171819202122
  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/ry_20220814.sql ./mysql/db
  10. cp ../sql/ry_config_20220510.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-admin "
  16. cp ../ruoyi-admin/target/ruoyi-admin.jar ./ruoyi/admin/jar