mirror of https://github.com/rwf2/Rocket.git
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:
parent
a58790d6d9
commit
ea6daa33b0
|
@ -22,8 +22,11 @@ following:**
|
||||||
You can also run the migrations manually with the following commands:
|
You can also run the migrations manually with the following commands:
|
||||||
|
|
||||||
```
|
```
|
||||||
cargo install diesel_cli # install diesel CLI tools
|
# install diesel CLI tools
|
||||||
DATABASE_URL=db/db.sql diesel migration run # create db/db.sql
|
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
|
2. A `DATABASE_URL` environment variable is set that points to the SQLite
|
||||||
|
|
Loading…
Reference in New Issue