FEATURE: turn website off and on during update
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user