deploy.sh: exclude documentele interne (*.md) și .serena/.gitignore din publicare

Documentele interne (CLAUDE.md, PRD, analize, TODOS) nu trebuie să fie public
accesibile la romfast.ro/<fisier>.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-06-26 14:47:53 +00:00
parent b6ad4cdf9c
commit c68d1b749d

View File

@@ -11,6 +11,8 @@
# - efactura-generator/config.json e exclus explicit (conține api_key, # - efactura-generator/config.json e exclus explicit (conține api_key,
# gestionat doar pe server). # gestionat doar pe server).
# - Folderul WIP „Index redesign - romfast.ro/" e exclus ca să nu ajungă public. # - Folderul WIP „Index redesign - romfast.ro/" e exclus ca să nu ajungă public.
# - Fișierele *.md (CLAUDE.md, PRD, analize, TODOS) sunt documente interne și
# NU se publică (ar fi accesibile la romfast.ro/<fisier>.md).
set -euo pipefail set -euo pipefail
@@ -37,6 +39,9 @@ rsync -avz "${DRY_RUN[@]}" \
--exclude='deploy.sh' \ --exclude='deploy.sh' \
--exclude='efactura-generator/config.json' \ --exclude='efactura-generator/config.json' \
--exclude='Index redesign - romfast.ro/' \ --exclude='Index redesign - romfast.ro/' \
--exclude='*.md' \
--exclude='.serena' \
--exclude='.gitignore' \
-e "ssh -p ${SSH_PORT}" \ -e "ssh -p ${SSH_PORT}" \
"${SRC_DIR}" \ "${SRC_DIR}" \
"${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_PATH}" "${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_PATH}"