Better document diesel cli installation

For todo example only sqllite diesel feature is needed an other
features introduce additional dependencies not needed for example.
This commit is contained in:
Katrina Brock 2017-08-12 18:47:58 -07:00
parent a58790d6d9
commit ea6daa33b0
1 changed files with 5 additions and 2 deletions

View File

@ -22,8 +22,11 @@ following:**
You can also run the migrations manually with the following commands:
```
cargo install diesel_cli # install diesel CLI tools
DATABASE_URL=db/db.sql diesel migration run # create db/db.sql
# install diesel CLI tools
cargo install diesel_cli --no-default-features --features sqlite
# create db/db.sql
DATABASE_URL=db/db.sql diesel migration run
```
2. A `DATABASE_URL` environment variable is set that points to the SQLite