uvicorn reload
时间: 2023-08-20 16:06:47 浏览: 378
uvicorn reload是一个命令行选项,用于在发过程中自动加载FastAPI应用。当使用uvicorn运行FastAPI应用时,添加--reload选项可以实现在代码发生变时自动重新加载应用,以便及时查看修改后的效果。具体使用方法是,在终端中运行类似于"uvicorn main:app --reload"的命令,其中main是你的应用入口文件,app是你的FastAPI应用实例的名称。这样,当你修改代码并保存后,uvicorn会自动重新加载应用,使你看到最新的效果。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [1_创建并运行最小应用及使用交互性文档](https://blog.csdn.net/weixin_43863487/article/details/125710186)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [uvicorn 使用方法](https://blog.csdn.net/qq_43229040/article/details/112461691)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文