Skip to content

Commit 05a655f

Browse files
committed
Recommend to compile zola in debug mode
Zola takes a long time to compile. For blog authors, it's probably better to compile zola a little faster while sacrificing some performance when building the site. By default, zola rebuilds every page when something changes. Debug builds perform noticeably worse in that case. But with the `--fast` flag, zola only rebuilds pages that actually changed. With that, the performance of debug and release builds not not noticeably different.
1 parent edaa11a commit 05a655f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You need at least zola v0.21.0 to render the blog.
1313
Compile from source:
1414

1515
```sh
16-
cargo install --locked --git https://github.com/getzola/zola --rev 45d3f8d6285f0b47013c5fa31eb405332118af8b
16+
cargo install --debug --locked --git https://github.com/getzola/zola --rev 45d3f8d6285f0b47013c5fa31eb405332118af8b
1717
```
1818

1919
You can also find a list of package managers that provide zola [here](https://www.getzola.org/documentation/getting-started/installation/).
@@ -25,7 +25,7 @@ If you use [mise](https://mise.jdx.dev), you can run the pinned version of zola
2525
To serve the site locally, run the following:
2626

2727
```sh
28-
zola serve --open
28+
zola serve --fast --open
2929
```
3030

3131
The site will be reloaded automatically when you make any changes.

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tasks]
22
zola = "zola"
3-
serve = "zola serve --open"
3+
serve = "zola serve --fast --open"
44

55
[tools]
66
zola = "0.21.0"

0 commit comments

Comments
 (0)