Update build instructions
This commit is contained in:
parent
0857ffadc7
commit
d4c0859115
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -8,8 +8,16 @@ This client contains the following features:
|
||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
|
Since we use SQLx there are a few things you'll need to do. First, you'll need
|
||||||
|
to run the init cache script, which initializes the db cache at
|
||||||
|
`./cache/metadata.sqlite`. Then you'll need to add the location of that to a
|
||||||
|
`.env` file:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cargo build --release
|
# In the project root
|
||||||
|
./init_cache.sh
|
||||||
|
echo "DATABASE_URL=sqlite:./cache/metadata.sqlite" >> .env
|
||||||
|
cargo build
|
||||||
```
|
```
|
||||||
|
|
||||||
## Cache implementation
|
## Cache implementation
|
||||||
|
|
Loading…
Reference in a new issue