#!/bin/bash # Auf miniweb ausführen: bash /var/www/tracker/deploy.sh set -e cd "$(dirname "$0")" RUN="su -s /bin/sh www-data -c" $RUN "git pull" $RUN "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 $RUN "APP_ENV=prod php bin/console doctrine:migrations:migrate --no-interaction --env=prod" $RUN "APP_ENV=prod php bin/console cache:clear --env=prod --no-warmup" $RUN "APP_ENV=prod php bin/console cache:warmup --env=prod" echo "Deploy fertig."