Skip to content

Instantly share code, notes, and snippets.

@moradi-morteza
Last active April 21, 2021 10:54
Show Gist options
  • Save moradi-morteza/ac7765a610a7b54ecf74756eb353d8c7 to your computer and use it in GitHub Desktop.
Save moradi-morteza/ac7765a610a7b54ecf74756eb353d8c7 to your computer and use it in GitHub Desktop.
[pull bash laravel ]
#!/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