Skip to content

Commit 115b87a

Browse files
committed
fix: exclude node_modules from rsync delete
1 parent d81803c commit 115b87a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ jobs:
8989
run: |
9090
SSH="ssh -i ~/.ssh/deploy_key root@${{ env.SERVER_IP }}"
9191
92-
# Sync build to server (exclude .env so it persists across deploys)
93-
rsync -azP --delete --exclude='.env' \
92+
# Sync build to server (exclude .env and node_modules so they persist)
93+
rsync -azP --delete --exclude='.env' --exclude='node_modules' \
9494
-e "ssh -i ~/.ssh/deploy_key" \
9595
build/ root@${{ env.SERVER_IP }}:${{ env.APP_DIR }}/
9696

0 commit comments

Comments
 (0)