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.
This commit is contained in:
2017-09-07 15:48:38 +02:00
parent 020f70b2cb
commit ea0f88b4b8

View File

@@ -66,11 +66,11 @@ echo "*** GULPA GULPA PILLAR ***"
echo echo
echo "*** SYNCING PILLAR_ASSETS ***" 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
echo "*** SYNCING PILLAR_TEMPLATES ***" 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 cd $BLENDER_CLOUD_DIR
@@ -82,8 +82,8 @@ echo "*** GULPA GULPA BLENDER_CLOUD ***"
echo echo
echo "*** SYNCING BLENDER_CLOUD_ASSETS ***" echo "*** SYNCING BLENDER_CLOUD_ASSETS ***"
# Exclude files managed by Git. # 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
echo "*** SYNCING BLENDER_CLOUD_TEMPLATES ***" 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