fix: exclude entire var/ from rsync --delete to preserve logs

This commit is contained in:
Pontoporeia
2026-05-11 00:43:04 +02:00
parent 7e987d281c
commit c0163ca4d5
2 changed files with 14 additions and 2 deletions

View File

@@ -58,8 +58,7 @@ deploy:
--exclude 'storage/maintenance.flag' \
--exclude 'storage/fixtures' \
--exclude 'storage/docs' \
--exclude 'var/cache/*' \
--exclude 'var/logs/*' \
--exclude 'var/' \
app/ xamxam:/var/www/xamxam/
ssh xamxam "mkdir -p /var/www/xamxam/var/{cache,logs,tmp}"
ssh xamxam "cd /var/www/xamxam && php scripts/ensure-db.php /var/www/xamxam/storage/xamxam.db && php migrations/run.php /var/www/xamxam/storage/xamxam.db"