dudi/deploy.sh
Simon Kühn d7edb30998 Run doctrine:migrations:migrate on deploy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-29 20:01:36 +02:00

17 lines
539 B
Bash
Executable file

#!/bin/bash
# Auf miniweb ausführen: bash /var/www/tracker/deploy.sh
set -e
cd "$(dirname "$0")"
git pull
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --no-interaction --optimize-autoloader --ignore-platform-reqs
# Alias-Deployment: RewriteBase auf /dd/ setzen
sed -i 's|RewriteBase /$|RewriteBase /dd/|' public/.htaccess
APP_ENV=prod php bin/console doctrine:migrations:migrate --no-interaction --env=prod
APP_ENV=prod php bin/console cache:clear --env=prod --no-warmup
chown -R www-data:www-data var/
echo "Deploy fertig."