Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2021 14:00:49 GMT
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: fd2542a877 - main - Allow binding to something else than 127.0.0.1.
Message-ID:  <202104121400.13CE0nth064380@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/doc/commit/?id=fd2542a877f6ac5dab6f6d819c8319beeb53aa76

commit fd2542a877f6ac5dab6f6d819c8319beeb53aa76
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2021-04-12 13:57:39 +0000
Commit:     Mathieu Arnold <mat@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104121400.13CE0nth064380>