Fix cache permission error by creating cache data dir explicitly
This commit is contained in:
+1
-4
@@ -74,6 +74,7 @@ pushd "$install_dir"
|
|||||||
#mkdir -p $install_dir/bootstrap/cache/ $install_dir/storage/framework/cache/ $install_dir/storage/framework/sessions/
|
#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)
|
# 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 view:clear
|
||||||
php$php_version artisan cache:clear
|
php$php_version artisan cache:clear
|
||||||
|
|
||||||
@@ -82,10 +83,6 @@ pushd "$install_dir"
|
|||||||
|
|
||||||
# Optimize the framework for better performance
|
# Optimize the framework for better performance
|
||||||
php$php_version artisan optimize --no-interaction --verbose
|
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
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user