Last active
June 17, 2021 06:00
-
-
Save germanow/ca5867795e4a6d0c67e5269dff040e57 to your computer and use it in GitHub Desktop.
Deploy laravel
This file contains hidden or 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
#!/usr/bin/env bash | |
# change working directory to self-update dir | |
parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) | |
cd "$parent_path" | |
git pull && | |
composer install --optimize-autoloader --no-dev && | |
php artisan migrate && | |
php artisan route:clear && | |
php artisan cache:clear && | |
php artisan config:clear && | |
php artisan optimize:clear && | |
php artisan config:cache && | |
php artisan route:cache | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment