FEATURE: turn website off and on during update

This commit is contained in:
Michal Kváček
2016-10-04 12:40:31 +02:00
parent 7dcb8e280c
commit 3024ae8b23
+5
View File
@@ -6,6 +6,8 @@ echo ""
echo " UPDATE RUNNING IN $SCRIPT_PATH"
echo ""
php artisan down
BRANCH=`cat $SCRIPT_PATH/../.install/.website_domain 2> /dev/null`
if [ ! $? -eq 0 ]; then
@@ -45,6 +47,7 @@ php artisan module:migrate --force -n
php artisan vendor:publish --tag=module-views --force -n
php artisan vendor:publish --tag=public-assets --force -n
php artisan vendor:publish
php artisan view:clear
# this part need running as root
sudo chmod 0777 bootstrap/cache -R
@@ -55,3 +58,5 @@ sudo chmod 0777 resources/views/modules -R
sudo chmod 0777 modules/*/module.json
sudo chmod 0777 modules/*/*/module.json
sudo chmod +x scripts/*
php artisan up