From b531ba3e49600f945703f3ab7379606ac9a378d1 Mon Sep 17 00:00:00 2001 From: Marcin Kuskiewicz Date: Fri, 3 Jan 2020 00:55:29 +0000 Subject: [PATCH] Dodaj 'update.sh' --- update.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..7306c15 --- /dev/null +++ b/update.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +php artisan down +git reset --hard FETCH_HEAD +git clean -df +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 \ No newline at end of file