minor logging change and DB creation for the demo

This commit is contained in:
2026-02-17 11:54:01 +01:00
parent 96cc0c3c46
commit 61039503d9
12 changed files with 17 additions and 2 deletions

BIN
db/1 copy.sqlite Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
db/auth_demo.sqlite Normal file

Binary file not shown.

BIN
db/demo-db/1 copy.sqlite Normal file

Binary file not shown.

BIN
db/demo-db/auth_demo.sqlite Normal file

Binary file not shown.

View File

@@ -494,7 +494,7 @@ pub async fn create_refresh_token(
},
) {
Ok(cr) => cr,
Err(_) => return Err((StatusCode::INTERNAL_SERVER_ERROR, "error fetching credentials".to_string())),
Err(e) => return Err((StatusCode::INTERNAL_SERVER_ERROR, format!("error fetching credentials: {e}").to_string())),
};

View File

@@ -48,9 +48,24 @@ docker run \
rust-api:1.0.3
FORM UBUNUTU REMOTE HOST
sudo docker run -d \
--name hotel-demo \
-e JWT_SECRET=your_jwt_secret_key \
-v "/var/lib/hotel-api/db:/app/db" \
-p 5090:7080 \
hotel-demo:1.0.0
FOR WINDOWS
vvvv
sudo docker run `
--name hotel-demo `
-e JWT_SECRET=your_jwt_secret_key `
-v "/var/lib/hotel-api/db:/app/db" `
-p 5090:5090 `
hotel-demo:1.0.0