eOSP2/update.sh

12 lines
277 B
Bash
Raw Normal View History

2020-01-03 01:55:29 +01:00
#!/bin/bash
php artisan down
git pull -f https://git.wmi.amu.edu.pl/s421507/eOSP2.git master
url=$(basename "$PWD")
chown -R www-data:www-data ../$url
chmod -R 755 ../$url
php artisan migrate
php artisan db:seed
php artisan queue:restart
php artisan cache:clear
php artisan up