Created
March 2, 2022 10:49
-
-
Save IlijaT/7767eaf6a3ab439809223ee7e1333de7 to your computer and use it in GitHub Desktop.
Laravel Deploy commands
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
=========================== | |
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