From bf05a54a2edc5cc729ebd71505399b2f0df9b28e Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sat, 13 Feb 2021 14:06:59 -0500 Subject: [PATCH] Add live reload tip for serving site with docker (#1352) --- docs/content/documentation/getting-started/installation.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/documentation/getting-started/installation.md b/docs/content/documentation/getting-started/installation.md index 5731ca29..01ce9ad3 100644 --- a/docs/content/documentation/getting-started/installation.md +++ b/docs/content/documentation/getting-started/installation.md @@ -94,6 +94,10 @@ $ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 bal You can now browse http://localhost:8080. +> To enable live browser reload, you may have to bind to port 1024. Zola searches for an open +> port between 1024 and 9000 for live reload. The new docker command would be +> `$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 -p 1024:1024 balthek/zola:0.13.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost` + ## Windows Zola is available on [Scoop](https://scoop.sh):