add lazygit to exclude / and remove from project dir

This commit is contained in:
2025-12-11 11:10:12 +02:00
parent 3771d8c815
commit 7e5dedc284
3 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ sshpass -p "${SERVER_PASSWORD}" \
--include 'public/build/assets' \ --include 'public/build/assets' \
--exclude 'public/build/assets/**' \ --exclude 'public/build/assets/**' \
`# Project scripts` \ `# Project scripts` \
--exclude "lazygit" \
--exclude ssh.sh \ --exclude ssh.sh \
--exclude remote-local.sh \ --exclude remote-local.sh \
--exclude local-remote.sh \ --exclude local-remote.sh \

View File

@@ -13,6 +13,7 @@ sshpass -p "${SERVER_PASSWORD}" \
--exclude cache \ --exclude cache \
--exclude sitepress-multilingual-cms \ --exclude sitepress-multilingual-cms \
`# Project scripts` \ `# Project scripts` \
--exclude "lazygit" \
--exclude ssh.sh \ --exclude ssh.sh \
--exclude remote-local.sh \ --exclude remote-local.sh \
--exclude local-remote.sh \ --exclude local-remote.sh \

View File

@@ -184,7 +184,6 @@ done
if [ "$SFTP_ONLY" = false ]; then if [ "$SFTP_ONLY" = false ]; then
echo "Uploading lazygit to server..." echo "Uploading lazygit to server..."
cp "${SCRIPT_DIR}/lazygit" .
sshpass -p "${SSH_PASSWORD}" scp "${SCRIPT_DIR}/lazygit" ${SERVER_HOST}:${SERVER_PROJECT_PATH} sshpass -p "${SSH_PASSWORD}" scp "${SCRIPT_DIR}/lazygit" ${SERVER_HOST}:${SERVER_PROJECT_PATH}
echo -e "${GREEN}lazygit uploaded successfully${NC}" echo -e "${GREEN}lazygit uploaded successfully${NC}"