Add artisan command to clear compiled views

After the recent update to 8.4.1 this command was mandatory, but wasnt applied to docker environment, therefore (atleast for my company) views were broken (empty licenses for example). Had to manually exec into the container and execute this command.

Adding it to the startup script should bring no real downsides, but should fix this for all others and all future version of snipe-it that have the same requirement for clearing compiled views
This commit is contained in:
Joly0
2026-04-13 09:49:51 +02:00
committed by GitHub
parent 87e65893d3
commit 31f90d20f8
+1
View File
@@ -124,6 +124,7 @@ fi
php artisan migrate --force
php artisan config:clear
php artisan config:cache
php artisan view:clear
# we do this after the artisan commands to ensure that if the laravel
# log got created by root, we set the permissions back