Last active
October 30, 2019 11:29
-
-
Save ulcuber/494308e161498a3d40e414ae9ab62c3d to your computer and use it in GitHub Desktop.
laravel forge common deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f artisan ] | |
then | |
php artisan down --message="Upgrading" --retry=60 | |
# to prevent missing providers/services when optimizing autoloader | |
# php artisan view:clear | |
# php artisan cache:clear | |
# php artisan route:clear | |
# php artisan config:clear | |
# php artisan clear-compiled | |
php artisan optimize:clear | |
git pull origin develop | |
composer install --no-interaction --prefer-dist --optimize-autoloader | |
echo "" | sudo -S service php7.2-fpm reload | |
php artisan migrate --force | |
php artisan event:cache | |
# php artisan config:cache | |
# php artisan route:cache | |
php artisan optimize | |
php artisan queue:restart | |
php artisan up | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment