try to fix entrypoint. remove old permit from repo

This commit is contained in:
Dobromir Popov
2024-07-06 23:51:19 +03:00
parent 0758a15f15
commit 1f8c2ee4e3
2 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,7 @@ if [ "$UPDATE_CODE_FROM_GIT" = "true" ]; then
git clone -b ${GIT_BRANCH:-main} --depth 1 https://$GIT_USERNAME:${GIT_PASSWORD//@/%40}@git.d-popov.com/popov/mwitnessing.git /tmp/clone || exit 1
# Synchronize all files except package.json and package-lock.json to /app. alo exclude '/app/public/content/uploads' to avoid deleting uploaded files
rsync -av --delete --exclude 'package.json' --exclude 'package-lock.json' --exclude '/app/public/content/uploads'
/tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
rsync -av --delete --exclude 'package.json' --exclude 'package-lock.json' --exclude '/public/content' /tmp/clone/ /app/ || echo "Rsync failed: Issue synchronizing files"
# Determine if package.json or package-lock.json has changed
PACKAGE_CHANGE=0