Created
November 9, 2022 00:55
-
-
Save joshluongo/b91b7c4eb7187d97ca5434d1103e2c70 to your computer and use it in GitHub Desktop.
Laravel Post Update
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
#!/bin/bash | |
composer dump-autoload | |
php artisan clear-compiled | |
# Vite | |
if [[ -d "node_modules/" ]] | |
then | |
npm run build | |
fi | |
sudo chown www-data:www-data storage/ -R | |
sudo chown www-data:www-data bootstrap/cache/ -R | |
sudo chmod 775 -R storage/ | |
sudo chmod 775 -R bootstrap/cache/ | |
php artisan cache:clear | |
sudo killall php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment