From 762e63eb2887820a521e7c7330a81263b31249f2 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sun, 21 May 2023 10:41:14 -0500 Subject: [PATCH] reload on change --- learn_sql_model/cli/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/learn_sql_model/cli/api.py b/learn_sql_model/cli/api.py index 7c9af84..5648880 100644 --- a/learn_sql_model/cli/api.py +++ b/learn_sql_model/cli/api.py @@ -26,4 +26,9 @@ def run( help="show the log messages", ), ): - uvicorn.run("learn_sql_model.api.app:app", port=get_config().port, log_level="info") + uvicorn.run( + "learn_sql_model.api.app:app", + port=get_config().port, + log_level="info", + reload=True, + )