Fix cache permission error by creating cache data dir explicitly

This commit is contained in:
CodeShakingSheep
2026-05-05 16:13:44 -05:00
committed by GitHub
parent 55b8640fe9
commit cda00cd6ef
+1 -4
View File
@@ -74,6 +74,7 @@ pushd "$install_dir"
#mkdir -p $install_dir/bootstrap/cache/ $install_dir/storage/framework/cache/ $install_dir/storage/framework/sessions/
# clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
mkdir -p $install_dir/storage/framework/cache/data/
php$php_version artisan view:clear
php$php_version artisan cache:clear
@@ -82,10 +83,6 @@ pushd "$install_dir"
# Optimize the framework for better performance
php$php_version artisan optimize --no-interaction --verbose
# clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377)
#php$php_version artisan view:clear
#php$php_version artisan cache:clear
popd
#=================================================