fix: exclude /public/content/permits and /public/content/uploads from being overwritten during deployment
This commit is contained in:
@ -39,6 +39,8 @@ if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then
|
|||||||
rsync -av --itemize-changes \
|
rsync -av --itemize-changes \
|
||||||
--exclude='package.json' \
|
--exclude='package.json' \
|
||||||
--exclude='package-lock.json' \
|
--exclude='package-lock.json' \
|
||||||
|
--exclude='/public/content/permits' \
|
||||||
|
--exclude='/public/content/uploads' \
|
||||||
/tmp/clone/ /app/ >> /app/logs/deploy.txt 2>&1
|
/tmp/clone/ /app/ >> /app/logs/deploy.txt 2>&1
|
||||||
|
|
||||||
# Check rsync exit status
|
# Check rsync exit status
|
||||||
|
Reference in New Issue
Block a user