Skip to content

Instantly share code, notes, and snippets.

@ulcuber
Last active October 30, 2019 11:29
Show Gist options
  • Save ulcuber/494308e161498a3d40e414ae9ab62c3d to your computer and use it in GitHub Desktop.
Save ulcuber/494308e161498a3d40e414ae9ab62c3d to your computer and use it in GitHub Desktop.
laravel forge common deploy
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