From f6c5b0b968d7d39077deb4025a52ed9235a440a1 Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Sat, 20 Sep 2014 23:14:43 -0400 Subject: [PATCH 1/2] little feedback when the DB is being setup --- src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.rs b/src/app.rs index 450dcc3ffff..243cb48f7a3 100644 --- a/src/app.rs +++ b/src/app.rs @@ -57,6 +57,7 @@ impl App { } pub fn db_setup(&self) { + print!(" - setting up the db\n") db::setup(&*self.database.get().unwrap()) } } From a2c4720da8b3e77e648f958946f4ee4484a87b44 Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Sat, 20 Sep 2014 23:16:08 -0400 Subject: [PATCH 2/2] add a note for setting up the database --- README.md | 2 +- src/app.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 86c9e52022d..76a442d4c7e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This README outlines the details of collaborating on this Ember application. ## Running * `cargo build` -* `./target/cargo-registry` +* `./target/cargo-registry` (note: first run use: `RESET=1 ./target/cargo_registry` to setup the database) * `ember server --proxy http://localhost:8888` * Visit your app at [http://localhost:4200](http://localhost:4200). diff --git a/src/app.rs b/src/app.rs index 243cb48f7a3..42be948adce 100644 --- a/src/app.rs +++ b/src/app.rs @@ -57,7 +57,7 @@ impl App { } pub fn db_setup(&self) { - print!(" - setting up the db\n") + println!(" - setting up the db") db::setup(&*self.database.get().unwrap()) } }