Rende persistenti i log di produzione e protegge il deploy.
Monta /app/log sul disco video, sposta i cron log sullo stesso path, esclude log/ dal sync rsync e aggiunge pulizia volumi Docker obsoleti. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,7 @@ if ssh "$SERVER" 'command -v rsync >/dev/null 2>&1'; then
|
||||
--exclude 'backend/tmp' \
|
||||
--exclude 'backend/.bundle' \
|
||||
--exclude 'infra/.env' \
|
||||
--exclude 'log/' \
|
||||
--exclude 'node_modules' \
|
||||
"$SRC/" "$SERVER:$DEST/"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user