lizw 1 year ago
parent
commit
55e0a4800c
  1. 37
      dsl/001sync_code.sh

37
dsl/001sync_code.sh

@ -83,12 +83,45 @@ target_pull() {
pullCode $target_path ${target_git} ${target_branch} ${target_position} 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_pull
source_build source_build
target_pull target_pull
sync_files
# bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/dsl/001sync_code.sh) # bash <(curl -s http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/dsl/001sync_code.sh)

Loading…
Cancel
Save