From a034df87c446ce1993b6dd7602333cd1a4d60894 Mon Sep 17 00:00:00 2001 From: Milan Zivkovic Date: Tue, 21 Apr 2020 13:10:20 +0200 Subject: [PATCH] fix issue with project name --- examples/postgres/todo-api/.env-example | 2 +- examples/postgres/todo-api/Cargo.toml | 2 +- examples/postgres/todo-api/src/main.rs | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/postgres/todo-api/.env-example b/examples/postgres/todo-api/.env-example index 8d793070a7..f474e6dd39 100644 --- a/examples/postgres/todo-api/.env-example +++ b/examples/postgres/todo-api/.env-example @@ -1,4 +1,4 @@ HOST=127.0.0.1 PORT=5000 DATABASE_URL="postgres://user:pass@192.168.33.11/actix_sqlx_todo" -RUST_LOG=actix_rest_api_sqlx=info,actix=info +RUST_LOG=todo_api=info,actix=info diff --git a/examples/postgres/todo-api/Cargo.toml b/examples/postgres/todo-api/Cargo.toml index df08d6b37c..e010355bcd 100644 --- a/examples/postgres/todo-api/Cargo.toml +++ b/examples/postgres/todo-api/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "actix_sqlx" +name = "todo_api" version = "0.1.0" authors = ["Milan Zivkovic "] edition = "2018" diff --git a/examples/postgres/todo-api/src/main.rs b/examples/postgres/todo-api/src/main.rs index fb8596ce71..3cce0d5bf1 100644 --- a/examples/postgres/todo-api/src/main.rs +++ b/examples/postgres/todo-api/src/main.rs @@ -62,6 +62,4 @@ async fn main() -> Result<()> { } // export DATABASE_URL="postgres://pguser:zx@192.168.33.11/realworld" -// systemfd --no-pid -s http::5000 -- cargo watch -x run -// I would add the example as "todo-api" -// Under the postgres folder \ No newline at end of file +// systemfd --no-pid -s http::5000 -- cargo watch -x run \ No newline at end of file