This commit is contained in:
parent
692f68cbec
commit
92e7bf6bd6
1 changed files with 4 additions and 5 deletions
|
@ -9,12 +9,10 @@ SHELL := bash
|
||||||
##### Variables ################################################################
|
##### Variables ################################################################
|
||||||
CACHEDIR := /tmp/hugo-cache-$(USER)
|
CACHEDIR := /tmp/hugo-cache-$(USER)
|
||||||
HOSTNAME := $(shell hostname -f)
|
HOSTNAME := $(shell hostname -f)
|
||||||
REVISION := $(shell git rev-parse HEAD)
|
|
||||||
|
|
||||||
##### Development ##############################################################
|
##### Development ##############################################################
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: ## make build
|
build: no-dirty ## make build
|
||||||
# TODO make sure to stash everything in content/ ?
|
|
||||||
@echo "----- Generating site -----"
|
@echo "----- Generating site -----"
|
||||||
hugo --gc --minify --cleanDestinationDir -d public/ \
|
hugo --gc --minify --cleanDestinationDir -d public/ \
|
||||||
--cacheDir $(CACHEDIR) --buildFuture
|
--cacheDir $(CACHEDIR) --buildFuture
|
||||||
|
@ -38,7 +36,6 @@ serve: ## make serve # hugo web server development mode
|
||||||
##### Operations ###############################################################
|
##### Operations ###############################################################
|
||||||
.PHONY: deploy
|
.PHONY: deploy
|
||||||
deploy: ## make deploy
|
deploy: ## make deploy
|
||||||
# TODO change to www@www.adyxax.org
|
|
||||||
rsync -a --delete public/ www@www.adyxax.org:/srv/www/public/
|
rsync -a --delete public/ www@www.adyxax.org:/srv/www/public/
|
||||||
rsync search/search www@www.adyxax.org:/srv/www/
|
rsync search/search www@www.adyxax.org:/srv/www/
|
||||||
ssh www@www.adyxax.org "systemctl --user restart www-search"
|
ssh www@www.adyxax.org "systemctl --user restart www-search"
|
||||||
|
@ -59,7 +56,9 @@ confirm:
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help:
|
help:
|
||||||
@grep -E '^[a-zA-Z\/_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | sort
|
@grep -E '^[a-zA-Z\/_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
|
||||||
|
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' \
|
||||||
|
| sort
|
||||||
|
|
||||||
.PHONY: no-dirty
|
.PHONY: no-dirty
|
||||||
no-dirty:
|
no-dirty:
|
||||||
|
|
Loading…
Add table
Reference in a new issue