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) <noreply@anthropic.com>
This commit is contained in:
12
makefile
12
makefile
@@ -47,7 +47,7 @@ restart: env-init
|
|||||||
$(DOCKER_COMPOSE) down
|
$(DOCKER_COMPOSE) down
|
||||||
CURRENT_UID=$(shell id -u) CURRENT_GID=$(shell id -g) $(DOCKER_COMPOSE) up -d
|
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)
|
# Supprime tout est réinstalle tout (Attention ça supprime la bdd aussi)
|
||||||
reset: delete_built_dir remove_orphans build-without-cache start wait install
|
reset: delete_built_dir remove_orphans build-without-cache start wait install
|
||||||
@@ -89,6 +89,9 @@ db-restart:
|
|||||||
$(DOCKER_COMPOSE) down
|
$(DOCKER_COMPOSE) down
|
||||||
$(DOCKER_COMPOSE) up -d
|
$(DOCKER_COMPOSE) up -d
|
||||||
|
|
||||||
|
migration-migrate:
|
||||||
|
$(SYMFONY_CONSOLE) doctrine:migrations:migrate --no-interaction
|
||||||
|
|
||||||
cache-clear:
|
cache-clear:
|
||||||
$(SYMFONY_CONSOLE) cache:clear
|
$(SYMFONY_CONSOLE) cache:clear
|
||||||
|
|
||||||
@@ -105,6 +108,13 @@ copy-git-hook:
|
|||||||
shell:
|
shell:
|
||||||
$(EXEC_PHP_INTERACTIVE) bash
|
$(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
|
# Force la version node
|
||||||
node-use:
|
node-use:
|
||||||
bash -lc 'source "$$HOME/.nvm/nvm.sh" && nvm install && nvm use'
|
bash -lc 'source "$$HOME/.nvm/nvm.sh" && nvm install && nvm use'
|
||||||
|
|||||||
Reference in New Issue
Block a user