From 95d0213846b4b758860aefdf8b88ad3a9036850d Mon Sep 17 00:00:00 2001 From: Nils Domrose Date: Mon, 3 Jun 2019 09:33:58 +0200 Subject: [PATCH] added backend specific features --- Building-binary.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Building-binary.md b/Building-binary.md index 65fa0e0..7c56e6a 100644 --- a/Building-binary.md +++ b/Building-binary.md @@ -7,10 +7,10 @@ ## Run/Compile ```sh -# Compile and run -cargo run --release -# or just compile (binary located in target/release/bitwarden_rs) -cargo build --release +# Compile with sqlite backend and run +cargo run --features sqlite --release +# or just compile with sqlite (binary located in target/release/bitwarden_rs) +cargo build --features sqlite --release ``` When run, the server is accessible in [http://localhost:8000](http://localhost:8000). @@ -58,7 +58,7 @@ The available configuration options are documented in the default `.env` file, a Note: the environment variables override the values set in the `.env` file. -## How to recreate database schemas (for developers) +## How to recreate database schemas for the sqlite backend (for developers) Install diesel-cli with cargo: ```sh cargo install diesel_cli --no-default-features --features sqlite-bundled @@ -78,5 +78,5 @@ Apply the migrations and save the generated schemas as follows: diesel migration redo # This step should be done automatically when using diesel-cli > 1.3.0 -# diesel print-schema > src/db/schema.rs +# diesel print-schema > src/db/sqlite/schema.rs ``` \ No newline at end of file