Fix deploy permissions and exclude credentials

- Add --chmod=D755,F644 to rsync (HestiaCP PHP-FPM needs world-readable)
- Exclude scripts/.deploy.env from deploy (contains server credentials)
This commit is contained in:
Alexander Schmidt
2026-03-27 07:55:54 +01:00
parent 83e7d43a74
commit 25cb0e1a5d

View File

@@ -120,11 +120,12 @@ if [[ "$DRY_RUN" == "1" ]]; then
echo "Running in dry-run mode (DEPLOY_DRY_RUN=1)."
fi
rsync -avz --delete \
rsync -avz --delete --chmod=D755,F644 \
${RSYNC_DRY_RUN} \
--exclude '.git' \
--exclude 'node_modules' \
--exclude 'data/' \
--exclude 'scripts/.deploy.env' \
./ "$HOST:$TARGET"
echo "Deploy complete (data/ preserved)."