vito/scripts/update.sh
2024-03-31 23:29:22 +02:00

24 lines
346 B
Bash
Executable File

#!/bin/bash
cd /home/vito/vito
php artisan down
git fetch --all
git checkout $(git tag -l --merged 1.x --sort=-v:refname | head -n 1)
composer install --no-dev
php artisan migrate --force
php artisan config:clear
php artisan cache:clear
php artisan view:clear
php artisan config:cache
sudo supervisorctl restart worker:*
php artisan up