git: fd2542a877 - main - Allow binding to something else than 127.0.0.1.
Mathieu Arnold
mat at FreeBSD.org
Mon Apr 12 14:00:49 UTC 2021
The branch main has been updated by mat:
URL: https://cgit.FreeBSD.org/doc/commit/?id=fd2542a877f6ac5dab6f6d819c8319beeb53aa76
commit fd2542a877f6ac5dab6f6d819c8319beeb53aa76
Author: Mathieu Arnold <mat at FreeBSD.org>
AuthorDate: 2021-04-12 13:57:39 +0000
Commit: Mathieu Arnold <mat at FreeBSD.org>
CommitDate: 2021-04-12 14:00:41 +0000
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=::
---
documentation/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the dev-commits-doc-all
mailing list