Improve dev makefile

This commit is contained in:
Daniel_I_Am 2022-06-15 23:07:41 +02:00
parent 6bc393d4bf
commit b840160463

View File

@ -11,10 +11,22 @@ help:
run: static/js/lunr/PagesIndex.json ## Start development environment
@docker-compose up -d hugo
.PHONY: stop
stop: ## Stop development environment
@docker-compose stop
.PHONY: down
down: ## Take down development environment
@docker-compose down
.PHONY: logs
logs: ## Tail development logs
@docker-compose logs -f --since=1m
.PHONY: shell
shell: ## Open a shell in the hugo container (it needs to be running) You are root in the container, so new files need to be chown'ed properly
@docker-compose exec -it hugo sh
.PHONY: update-search-index
update-search-index: static/js/lunr/PagesIndex.json ## Update the search index if needed