From 342ae3776253e986c202490c7c7d9600d2fdae50 Mon Sep 17 00:00:00 2001 From: r-dev Date: Fri, 3 Apr 2026 09:34:25 +0200 Subject: [PATCH] chore(makefile) : add missing make targets from SIRH/Lesstime Add migration-migrate, shell-root, logs-dev targets and include migration-migrate in the install dependency chain. Co-Authored-By: Claude Opus 4.6 (1M context) --- makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 1024c61..75e669b 100644 --- a/makefile +++ b/makefile @@ -47,7 +47,7 @@ restart: env-init $(DOCKER_COMPOSE) down CURRENT_UID=$(shell id -u) CURRENT_GID=$(shell id -g) $(DOCKER_COMPOSE) up -d -install: copy-git-hook composer-install cache-clear node-use build-nuxtJS +install: copy-git-hook composer-install cache-clear node-use build-nuxtJS migration-migrate # Supprime tout est réinstalle tout (Attention ça supprime la bdd aussi) reset: delete_built_dir remove_orphans build-without-cache start wait install @@ -89,6 +89,9 @@ db-restart: $(DOCKER_COMPOSE) down $(DOCKER_COMPOSE) up -d +migration-migrate: + $(SYMFONY_CONSOLE) doctrine:migrations:migrate --no-interaction + cache-clear: $(SYMFONY_CONSOLE) cache:clear @@ -105,6 +108,13 @@ copy-git-hook: shell: $(EXEC_PHP_INTERACTIVE) bash +shell-root: + $(EXEC_PHP_INTERACTIVE_ROOT) bash + +# Suivi temps réel des logs dev +logs-dev: + $(EXEC_PHP_INTERACTIVE) sh -lc "tail -f var/log/dev.log" + # Force la version node node-use: bash -lc 'source "$$HOME/.nvm/nvm.sh" && nvm install && nvm use'