Skip to content

Instantly share code, notes, and snippets.

@IlijaT
Created March 2, 2022 10:49
Show Gist options
  • Save IlijaT/7767eaf6a3ab439809223ee7e1333de7 to your computer and use it in GitHub Desktop.
Save IlijaT/7767eaf6a3ab439809223ee7e1333de7 to your computer and use it in GitHub Desktop.
Laravel Deploy commands
===========================
1. Site down
---------------------------
php artisan down
===========================
===========================
2. Git pull
---------------------------
git pull origin branch_name
===========================
===========================
3. Cache clear
---------------------------
php artisan cache:clear
php artisan view:clear
php artisan config:clear
php artisan route:clear
===========================
===========================
4. Composer install
---------------------------
composer install --no-dev --no-interaction --no-progress --no-scripts
===========================
===========================
5. Migrate database
---------------------------
php artisan migrate --force
===========================
===========================
6. Cache
---------------------------
php artisan view:cache
php artisan config:cache
php artisan route:cache
===========================
===========================
7. Queue restart
---------------------------
php artisan queue:restart
===========================
===========================
8. Site - up
---------------------------
php artisan up
===========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment