From 55e0a4800c829de123dfcb0c65b9c6253104ee3c Mon Sep 17 00:00:00 2001 From: lizw <1183409807@qq.com> Date: Tue, 22 Oct 2024 13:49:54 +0800 Subject: [PATCH] ... --- dsl/001sync_code.sh | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/dsl/001sync_code.sh b/dsl/001sync_code.sh index f368d06..8ff23d8 100644 --- a/dsl/001sync_code.sh +++ b/dsl/001sync_code.sh @@ -83,12 +83,45 @@ target_pull() { pullCode $target_path ${target_git} ${target_branch} ${target_position} } +sync_files() { + echo -e "$echoPrefix 开始同步 $echoSuffix" + rsync -azvr --progress \ + --exclude '*\.git\' \ + --exclude '*\.gradle\' \ + --exclude '*\.httpCache\' \ + --exclude '*\.idea\' \ + --exclude '*\logs\' \ + --exclude '*\build\' \ + --exclude '*\out\' \ + --exclude '*\node_modules\' \ + --exclude '*\yvan-framework\' \ + --exclude '*\yvan-ui\' \ + --exclude '*\build.gradle' \ + --exclude '*\settings.gradle' \ + --exclude '*\application*' \ + --exclude '*\bootstrap*' \ + --exclude '*\wms-print\' \ + --exclude '*\generated\' \ + --exclude '*\generated_tests\' \ + --exclude '*\*.bpmn' \ + --exclude '*\wms-modules\yvan-studio\*' \ + --exclude '*\gradle.properties' \ + --exclude '*\gradle-wrapper.properties' \ + --exclude '*\Dockerfile-wms-config-center' \ + --exclude '*\Dockerfile-wms-print' \ + --exclude '*\Dockerfile-wms-ui-config-center' \ + --exclude '*\Dockerfile-wms-ui-mobile' \ + --exclude '*\Dockerfile-wms-ui-pc' \ + --exclude '*\Dockerfile-wms-system' \ + $source_path $target_path + echo -e "$echoPrefix 同步完成 $echoSuffix" - - +} source_pull source_build target_pull +sync_files + # bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/dsl/001sync_code.sh)