From owner-dev-commits-doc-all@freebsd.org Tue Jun 8 22:55:03 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0656363FE91 for ; Tue, 8 Jun 2021 22:55:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4G05D65Nrgz3MHM; Tue, 8 Jun 2021 22:55:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 875E911B0B; Tue, 8 Jun 2021 22:55:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 158Mt2dv063287; Tue, 8 Jun 2021 22:55:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 158Mt24a063286; Tue, 8 Jun 2021 22:55:02 GMT (envelope-from git) Date: Tue, 8 Jun 2021 22:55:02 GMT Message-Id: <202106082255.158Mt24a063286@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: c9c4fc4628 - main - hugo server: Fix bind and hostname parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9c4fc4628a0d18d41fffb66a7f930f81653ef6b Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2021 22:55:03 -0000 The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=c9c4fc4628a0d18d41fffb66a7f930f81653ef6b commit c9c4fc4628a0d18d41fffb66a7f930f81653ef6b Author: Danilo G. Baio AuthorDate: 2021-06-05 20:25:46 +0000 Commit: Danilo G. Baio CommitDate: 2021-06-08 22:52:50 +0000 hugo server: Fix bind and hostname parameters When BIND variable is defined, baseURL/.HOST should not be set to localhost by default. Reported by: imp Reviewed by: imp, ceri, blackend Differential Revision: https://reviews.freebsd.org/D30656 --- documentation/Makefile | 8 ++++++-- website/Makefile | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/documentation/Makefile b/documentation/Makefile index 606d79c30f..0c4725d19e 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -39,9 +39,13 @@ RUN_DEPENDS= ${PYTHON_CMD} \ ${LOCALBASE}/bin/rougify .ifndef HOSTNAME -.HOST+=localhost +. ifdef BIND +.HOST=$(BIND) +. else +.HOST=localhost +. endif .else -.HOST+=$(HOSTNAME) +.HOST=$(HOSTNAME) .endif .ORDER: all run diff --git a/website/Makefile b/website/Makefile index fbee771541..dd650f501a 100644 --- a/website/Makefile +++ b/website/Makefile @@ -22,9 +22,13 @@ RUBYLIB = ../shared/lib .export RUBYLIB .ifndef HOSTNAME -.HOST+=localhost +. ifdef BIND +.HOST=$(BIND) +. else +.HOST=localhost +. endif .else -.HOST+=$(HOSTNAME) +.HOST=$(HOSTNAME) .endif .ORDER: all run