Skip to content

Commit 5e4772d

Browse files
authored
Merge pull request #2368 from knagaitsev/frontend-build-note
Cargo clean note for frontend build
2 parents e04138d + 74618f5 commit 5e4772d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

site/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ You can build the website in multiple ways:
2525
2626
# Build website binary
2727
$ cd ../..
28+
$ cargo clean
2829
$ cargo build --bin site --release
2930
```
31+
32+
A clean build with `cargo clean` is needed only if you compiled the site previously,
33+
as static files are embedded into the binary in release mode.
34+
3035
The `--release` flag is on purpose, reducing startup time 15x from roughly 15
3136
seconds to 1; this is on the production database and smaller data sets are
3237
likely to load considerably faster.

0 commit comments

Comments
 (0)