From 715530ebdd6e62c431793adde9e2e4466852a78c Mon Sep 17 00:00:00 2001 From: "Dobromir Popov (aider)" Date: Tue, 17 Sep 2024 10:42:46 +0300 Subject: [PATCH] fix: exclude /public/content/permits and /public/content/uploads from being overwritten during deployment --- _deploy/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_deploy/entrypoint.sh b/_deploy/entrypoint.sh index 963c99f..81d1d76 100644 --- a/_deploy/entrypoint.sh +++ b/_deploy/entrypoint.sh @@ -39,6 +39,8 @@ if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then rsync -av --itemize-changes \ --exclude='package.json' \ --exclude='package-lock.json' \ + --exclude='/public/content/permits' \ + --exclude='/public/content/uploads' \ /tmp/clone/ /app/ >> /app/logs/deploy.txt 2>&1 # Check rsync exit status