2020-01-03 01:55:29 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
php artisan down
|
2020-02-01 02:15:25 +01:00
|
|
|
git reset --hard FETCH_HEAD
|
|
|
|
git clean -df
|
2020-01-03 01:55:29 +01:00
|
|
|
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
|
2020-01-05 16:15:42 +01:00
|
|
|
php artisan up
|
2020-02-01 11:43:29 +01:00
|
|
|
echo 0
|