dudi/deploy.sh
Simon Kühn fd473f00af Initial commit: Dudi habit tracker
Symfony 8 SPA with Doctrine ORM, Symfony Security, vanilla JS frontend.
Migrated from plain PHP (delight-im/auth + raw SQL) to full Symfony stack.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 15:40:57 +02:00

29 lines
725 B
Bash
Executable file

#!/bin/bash
set -e
REMOTE="root@miniweb.kuehn.home"
REMOTE_DIR="/var/www/tracker"
SSH="ssh -p 30183"
rsync -av \
-e "$SSH" \
--exclude='.claude/' \
--exclude='.superpowers/' \
--exclude='.aider*' \
--exclude='vendor/' \
--exclude='var/' \
--exclude='docs/' \
--exclude='.env.local' \
--exclude='deploy.sh' \
--exclude='include/' \
--exclude='api.php' \
--exclude='index.php' \
/srv/http/zieltracker/ $REMOTE:$REMOTE_DIR/
# composer install auf dem Server
$SSH $REMOTE "cd $REMOTE_DIR && composer install --no-dev --no-interaction --optimize-autoloader 2>&1 | tail -5"
# Cache leeren
$SSH $REMOTE "cd $REMOTE_DIR && php bin/console cache:clear --env=prod --no-warmup 2>&1"
echo "Deploy fertig."