add back accidentally deleted cache dirs

This commit is contained in:
Nabeel Shahzad 2018-01-04 15:03:09 -06:00
parent f3f9e3043d
commit 5ba20b5bb3
4 changed files with 9 additions and 3 deletions

View File

@ -19,9 +19,9 @@ clean:
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/app/public -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/app -type f -not -name '.gitignore' -not -name public -print0 | xargs -0 rm -rf
@find storage/framework/cache -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/sessions -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/views -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/cache/ -type f -or -type d -not -name '.gitignore' -mindepth 1 -print0 | xargs -0 rm -rf
@find storage/framework/sessions/ -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/framework/views/ -type f -or -type d -not -name '.gitignore' -print0 | xargs -0 rm -rf
@find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 rm -rf
.PHONY: clean-routes

2
storage/framework/cache/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
-*
-!.gitignore

2
storage/framework/sessions/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
-*
-!.gitignore

2
storage/framework/views/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
-*
-!.gitignore