mirror of
https://git.FreeBSD.org/doc.git
synced 2026-06-02 19:35:07 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user