From 365b15ccc29a2becab6f2d4dc98e3702bdfe8370 Mon Sep 17 00:00:00 2001 From: Gijs Burghoorn Date: Wed, 21 Jul 2021 22:18:37 +0200 Subject: [PATCH] Added sidenote on serving to local devices [Issue #1556] --- docs/content/documentation/getting-started/cli-usage.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/content/documentation/getting-started/cli-usage.md b/docs/content/documentation/getting-started/cli-usage.md index 046eaa9c..c7de069d 100644 --- a/docs/content/documentation/getting-started/cli-usage.md +++ b/docs/content/documentation/getting-started/cli-usage.md @@ -72,6 +72,10 @@ the interface/port combination to use if you want something different than the d You can also specify different addresses for the interface and base_url using `--interface` and `-u`/`--base-url`, respectively, if for example you are running Zola in a Docker container. +> By default, devices from the local network **won't** be able to access the served pages. This may be of importance when you want to test page interaction and layout on your mobile device or tablet. If you set the interface to `0.0.0.0` however, devices from your local network will be able to access the served pages by requesting the local ip-address of the machine serving the pages and port used. +> +> In order to have everything work correctly, you might also have to alter the `base-url` flag to your local ip. + Use the `--open` flag to automatically open the locally hosted instance in your web browser.