Ajout clear empreinte mémoire REDIS

This commit is contained in:
Jean-Marie Favreau 2025-04-21 14:16:35 +02:00
parent 6a5ef67811
commit ec6c0e043e

View File

@ -5,6 +5,8 @@ SHELL := /bin/sh
PROJECTNAME ?= agenda_culturel PROJECTNAME ?= agenda_culturel
APP_NAME := $(PROJECTNAME) APP_NAME := $(PROJECTNAME)
BACKEND_APP_NAME := $(APP_NAME)-backend 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) DOCKERCOMPOSE=$(shell if command -v docker-compose 2>&1 >/dev/null; then echo "docker-compose"; else echo "docker compose"; fi)
define HELP define HELP
@ -105,6 +107,9 @@ clean-builder-cache: # useful for huge overlay directory
restart-prod: restart-prod:
DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 $(DOCKERCOMPOSE) -f docker-compose.prod.yml restart 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 all: help
.PHONY: help lint format test super-user make-migrations migrate build-dev build-prod stop-dev stop-prod all .PHONY: help lint format test super-user make-migrations migrate build-dev build-prod stop-dev stop-prod all