Improve dev makefile
This commit is contained in:
parent
6bc393d4bf
commit
b840160463
12
Makefile
12
Makefile
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user