Files
ploi-core/update.sh
2020-10-21 08:50:48 +02:00

30 lines
475 B
Bash
Executable File

#!/bin/bash
echo "Ploi Core update script"
echo "Pulling in new file changes.."
git pull origin master
echo "Installing possible new packages.."
composer install --no-interaction --prefer-dist --no-dev --optimize-autoloader --quiet
echo "Updating database.."
php artisan migrate --force
echo "Restarting workers.."
php artisan horizon:terminate
echo "Clearing cache.."
php artisan cache:clear
echo "Refreshing routes.."
php artisan route:cache
echo "All done!"