Skip to content

Commit

Permalink
Fix invalid startup command for site
Browse files Browse the repository at this point in the history
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
  • Loading branch information
0xpr03 committed Jul 19, 2019
1 parent c579c18 commit 281d03b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,15 @@ will intiate a git pull in the timings repo directory passed on startup.
Launching
---------

It can be run with the following command:
Note that this binary expects its static files under `/site/static` not `/static`. It is meant to be run from the root of this repository, not the `site` directory.
It can be run with the following command from root-dir:

```
cargo run --release data
cargo run --bin site --release data
```

The release flag is on purpose, reducing startup time ~80%.

The first time you do this the Rust repo is cloned, so it will take a minute or
two (or more if you have a slow internet connection) before the web server
starts up.
Expand Down

0 comments on commit 281d03b

Please sign in to comment.