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'