2026-04-29 13:40:57 +00:00
|
|
|
#!/bin/bash
|
2026-04-29 13:53:49 +00:00
|
|
|
# Auf miniweb ausführen: bash /var/www/tracker/deploy.sh
|
2026-04-29 13:40:57 +00:00
|
|
|
set -e
|
|
|
|
|
|
2026-04-29 13:53:49 +00:00
|
|
|
cd "$(dirname "$0")"
|
2026-04-29 13:40:57 +00:00
|
|
|
|
2026-04-29 13:53:49 +00:00
|
|
|
git pull
|
2026-04-29 13:55:00 +00:00
|
|
|
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --no-interaction --optimize-autoloader --ignore-platform-reqs
|
2026-04-29 13:58:13 +00:00
|
|
|
|
|
|
|
|
# Alias-Deployment: RewriteBase auf /dd/ setzen
|
|
|
|
|
sed -i 's|RewriteBase /$|RewriteBase /dd/|' public/.htaccess
|
|
|
|
|
|
2026-04-29 13:53:49 +00:00
|
|
|
APP_ENV=prod php bin/console cache:clear --env=prod --no-warmup
|
2026-04-29 13:40:57 +00:00
|
|
|
|
|
|
|
|
echo "Deploy fertig."
|