From 1b5ba63fd04c0960a8e90c2ce2135ac320bb000d Mon Sep 17 00:00:00 2001 From: Katrina Brock Date: Sat, 12 Aug 2017 18:47:58 -0700 Subject: [PATCH] Improve bootstrapping instructions in todo example. --- examples/todo/README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/examples/todo/README.md b/examples/todo/README.md index 1b3c7377..72070fd0 100644 --- a/examples/todo/README.md +++ b/examples/todo/README.md @@ -14,17 +14,21 @@ following:** 1. A SQLite database file with the proper schema is present. - On a Unix machine or with bash installed, you can simply run the - `boostrap.sh` script to create the database. The script installs the - `diesel_cli` tools if they're not already installed and runs the migrations. - The script will output a `DATABASE_URL` variable. + On a Unix machine or with bash installed, you can simply run the + `boostrap.sh` script to create the database. The script installs the + `diesel_cli` tools if they're not already installed and runs the + migrations. The script will output a `DATABASE_URL` variable. - You can also run the migrations manually with the following commands: + You can also install the Diesel CLI and 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 database file.