aboutsummaryrefslogtreecommitdiff
path: root/documentation/Makefile
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2021-04-12 13:57:39 +0000
committerMathieu Arnold <mat@FreeBSD.org>2021-04-12 14:00:41 +0000
commitfd2542a877f6ac5dab6f6d819c8319beeb53aa76 (patch)
tree8e4e2fb738652d97f5eb9f79bfaec73a15c4d9f8 /documentation/Makefile
parent6b4299a84aef538931c3cce334dcc5ef63e9f5df (diff)
downloaddoc-fd2542a877f6ac5dab6f6d819c8319beeb53aa76.tar.gz
doc-fd2542a877f6ac5dab6f6d819c8319beeb53aa76.zip
Allow binding to something else than 127.0.0.1.
If not building the documentation on your local machine, you may need to access the hugo server from another machine, you may want to run: make run HOSTNAME=host.example.org BIND=::
Diffstat (limited to 'documentation/Makefile')
-rw-r--r--documentation/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 72f5b89dda..840e306fd4 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -49,7 +49,7 @@ generate-books-toc: .PHONY
${PYTHON_CMD} ./tools/books-toc-examples-creator.py -l ${LANGUAGES}
run-local: .PHONY
- ${HUGO_CMD} server -D --baseURL="http://$(.HOST):1313"
+ ${HUGO_CMD} server -D $(BIND:D--bind=$(BIND)) --baseURL="http://$(.HOST):1313"
build: .PHONY
${HUGO_CMD} --minify