dudi/deploy.sh

16 lines
422 B
Bash
Raw Normal View History

#!/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 cache:clear --env=prod --no-warmup
echo "Deploy fertig."