minor logging change and DB creation for the demo
This commit is contained in:
BIN
db/1 copy.sqlite
Normal file
BIN
db/1 copy.sqlite
Normal file
Binary file not shown.
BIN
db/1.sqlite
BIN
db/1.sqlite
Binary file not shown.
BIN
db/1.sqlite-shm
BIN
db/1.sqlite-shm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
db/auth_demo.sqlite
Normal file
BIN
db/auth_demo.sqlite
Normal file
Binary file not shown.
BIN
db/demo-db/1 copy.sqlite
Normal file
BIN
db/demo-db/1 copy.sqlite
Normal file
Binary file not shown.
BIN
db/demo-db/auth_demo.sqlite
Normal file
BIN
db/demo-db/auth_demo.sqlite
Normal file
Binary file not shown.
@@ -494,7 +494,7 @@ pub async fn create_refresh_token(
|
|||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
Ok(cr) => cr,
|
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())),
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -48,9 +48,24 @@ docker run \
|
|||||||
rust-api:1.0.3
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user