Browse Source

add --watch-only to docs

index-subcmd
Robert Masen 6 years ago
parent
commit
43cac703a3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      docs/content/documentation/getting-started/cli-usage.md

+ 3
- 0
docs/content/documentation/getting-started/cli-usage.md View File

@@ -56,6 +56,8 @@ 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 `-u`/`--base-url`, for example You can also specify different addresses for the interface and base_url using `-u`/`--base-url`, for example
if you are running zola in a Docker container. if you are running zola in a Docker container.


In the event you don't want zola to run a local webserver, you can use the `--watch-only` flag.

```bash ```bash
$ zola serve $ zola serve
$ zola serve --port 2000 $ zola serve --port 2000
@@ -63,6 +65,7 @@ $ zola serve --interface 0.0.0.0
$ zola serve --interface 0.0.0.0 --port 2000 $ zola serve --interface 0.0.0.0 --port 2000
$ zola serve --interface 0.0.0.0 --base-url 127.0.0.1 $ zola serve --interface 0.0.0.0 --base-url 127.0.0.1
$ zola serve --interface 0.0.0.0 --port 2000 --output-dir www/public $ zola serve --interface 0.0.0.0 --port 2000 --output-dir www/public
$ zola serve --watch-only
``` ```


The serve command will watch all your content and will provide live reload, without The serve command will watch all your content and will provide live reload, without


Loading…
Cancel
Save