diff --git a/README.md b/README.md index 025ee76..989c20a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Sample application with: You need to have [rust](https://www.rust-lang.org/) installed. ```bash -export DATABASE_URL=sqlite://./todosdb.sqlite +export DATABASE_URL=sqlite://./todos.sqlite cargo run ``` @@ -31,7 +31,7 @@ cargo install cargo-watch cargo watch -x run -w templates -w src -w assets ``` -# Production +## Production To have a production tailwind bundle @@ -55,4 +55,15 @@ You will need to keep the `assets` and `templates` folders relative to the binar │   └── hyperscript.org@0.9.11_dist__hyperscript.min.js ├── todosdb.sqlite └── todox -``` \ No newline at end of file +``` + +## Rebuild database + +In case you want to rebuild the sqlite database based on your `DATABASE_URL` env: +You need to have `libssl-dev` on Ubuntu or `openssl-devel` on Fedora installed. + +```bash +cargo install sqlx-cli +cargo sqlx database create +cargo sqlx migrate run +``` diff --git a/todos.sqlite b/todos.sqlite index 9a47220..426f408 100644 Binary files a/todos.sqlite and b/todos.sqlite differ