Skip to content

Commit 4e2f724

Browse files
committed
Add support for overriding hostname
Useful for running `make serve` on a remote machine using 0.0.0.0 or a different hostname
1 parent 8b723e8 commit 4e2f724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ clobber: clean
3939
rm -f mdbook
4040

4141
# Start mdbook as web server.
42-
MDBOOK_HOSTNAME = localhost
42+
MDBOOK_HOSTNAME ?= localhost
4343
MDBOOK_PORT = 3000
4444
serve:
4545
cd book && $(MDBOOK_BINARY) serve --hostname $(MDBOOK_HOSTNAME) --port $(MDBOOK_PORT)

0 commit comments

Comments
 (0)