From ea0f88b4b8b64fbc38490b168706ce90b917c2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 7 Sep 2017 15:48:38 +0200 Subject: [PATCH] rsync_ui: delete old files when rsyncing. This is especially necessary for custom node templates, as those are used when they exist, with fallback to generic templates. When those files are removed from the repository, they should be removed from the production server too. --- rsync_ui.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rsync_ui.sh b/rsync_ui.sh index 8cb9f8a..a01c499 100755 --- a/rsync_ui.sh +++ b/rsync_ui.sh @@ -66,11 +66,11 @@ echo "*** GULPA GULPA PILLAR ***" echo echo "*** SYNCING PILLAR_ASSETS ***" -rsync -avh $PILLAR_ASSETS root@${DEPLOYHOST}:/data/git/pillar/pillar/web/static/assets/ +rsync -avh $PILLAR_ASSETS root@${DEPLOYHOST}:/data/git/pillar/pillar/web/static/assets/ --delete-after echo echo "*** SYNCING PILLAR_TEMPLATES ***" -rsync -avh $PILLAR_TEMPLATES root@${DEPLOYHOST}:/data/git/pillar/pillar/web/templates/ +rsync -avh $PILLAR_TEMPLATES root@${DEPLOYHOST}:/data/git/pillar/pillar/web/templates/ --delete-after cd $BLENDER_CLOUD_DIR @@ -82,8 +82,8 @@ echo "*** GULPA GULPA BLENDER_CLOUD ***" echo echo "*** SYNCING BLENDER_CLOUD_ASSETS ***" # Exclude files managed by Git. -rsync -avh $BLENDER_CLOUD_ASSETS --exclude js/vendor/ root@${DEPLOYHOST}:/data/git/blender-cloud/cloud/static/ +rsync -avh $BLENDER_CLOUD_ASSETS --exclude js/vendor/ root@${DEPLOYHOST}:/data/git/blender-cloud/cloud/static/ --delete-after echo echo "*** SYNCING BLENDER_CLOUD_TEMPLATES ***" -rsync -avh $BLENDER_CLOUD_TEMPLATES root@${DEPLOYHOST}:/data/git/blender-cloud/cloud/templates/ +rsync -avh $BLENDER_CLOUD_TEMPLATES root@${DEPLOYHOST}:/data/git/blender-cloud/cloud/templates/ --delete-after