Last active
April 21, 2021 10:54
-
-
Save moradi-morteza/ac7765a610a7b54ecf74756eb353d8c7 to your computer and use it in GitHub Desktop.
[pull bash 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
#!/bin/bash | |
SCHOOLS[0]="develop" | |
SCHOOLS[1]="dinodanesh" | |
SCHOOLS[2]="ettehad" | |
SCHOOLS[3]="farhikhteg" | |
SCHOOLS[4]="kaj" | |
SCHOOLS[5]="momtazseda" | |
SCHOOLS[6]="pardis" | |
SCHOOLS[7]="rahiyansaa" | |
SCHOOLS[8]="tamaddon" | |
SCHOOLS[9]="bamdad" | |
cd / | |
for item in "${SCHOOLS[@]}" | |
do | |
echo "working on $item please wait ... " | |
cd /home/$item/public_html/asas-server/ | |
git checkout . | |
git pull origin master | |
php artisan migrate | |
php artisan route:cache | |
php artisan config:cache | |
php artisan config:cache | |
php artisan view:cache | |
chmod -R 777 public | |
chmod -R 755 storage bootstrap/cache | |
echo "successfully pulled $item " | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment