diff --git a/Makefile b/Makefile index e83b5aa..b31b61f 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,8 @@ SHELL := /bin/sh PROJECTNAME ?= agenda_culturel APP_NAME := $(PROJECTNAME) BACKEND_APP_NAME := $(APP_NAME)-backend +REDIS_APP_NAME := $(APP_NAME)-redis + DOCKERCOMPOSE=$(shell if command -v docker-compose 2>&1 >/dev/null; then echo "docker-compose"; else echo "docker compose"; fi) define HELP @@ -105,6 +107,9 @@ clean-builder-cache: # useful for huge overlay directory restart-prod: DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 $(DOCKERCOMPOSE) -f docker-compose.prod.yml restart +clear-redis: + docker exec -i $(REDIS_APP_NAME) redis-cli FLUSHALL + all: help .PHONY: help lint format test super-user make-migrations migrate build-dev build-prod stop-dev stop-prod all