This commit is contained in:
aynic.os
2021-05-30 23:45:30 +02:00
parent 8a7a545a6c
commit c9821467de
12 changed files with 37 additions and 44 deletions
+1 -7
View File
@@ -3,20 +3,14 @@
## Clear symfony cache
.PHONY: cache-clear
cache-clear: cache-clear-dev cache-clear-prod
cache-clear: cache-clear-$(SYMFONY_ENV)
.PHONY: cache-clear-%
cache-clear-%: bootstrap ## Clear symfony cache
$(call docker-compose-exec,$(DOCKER_SERVICE),app/console cache:clear --env=$*)
.PHONY: cache-rm
cache-rm: bootstrap
$(call docker-compose-exec,$(DOCKER_SERVICE),rm -Rf app/cache/* app/logs/*)
$(if $(filter $(ENV),$(ENV_DEPLOY)),$(call docker-compose-exec,$(DOCKER_SERVICE),chown www-data app/cache/ app/logs/))
.PHONY: cache-warmup
cache-warmup: cache-warmup-$(SYMFONY_ENV)
$(if $(filter $(ENV),$(ENV_DEPLOY)),$(call docker-compose-exec,$(DOCKER_SERVICE),chown -R www-data app/cache/ app/logs/))
.PHONY: cache-warmup-%
cache-warmup-%: bootstrap