diff --git a/scripts/update.sh b/scripts/update.sh index 213eb466..ca4658c3 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -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 \ No newline at end of file