some manual cleanup with the Make clean

This commit is contained in:
Nabeel Shahzad
2017-12-05 21:39:27 -06:00
parent 84f47a09c8
commit 281c72bcf6

View File

@@ -12,15 +12,21 @@ all: build
build:
@composer install --no-interaction
@php artisan config:cache
@make db
.PHONY: install
install: db
install: build db
echo ""
.PHONY: clean
clean:
@php artisan cache:clear
@find bootstrap/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@find storage/app/public -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@find storage/app -type f -not -name '.gitignore' -not -name public -print0 | xargs -0 rm --
@find storage/framework/cache -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@find storage/framework/sessions -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@find storage/framework/views -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@find storage/logs -type f -not -name '.gitignore' -print0 | xargs -0 rm --
@composer dump-autoload
@php artisan route:clear
@php artisan config:clear