如何在开发环境启动代码的热更新? #2727
Unanswered
wangwhcore
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
The current environment doesn't support hot reloading, you can try to take a look. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
1、参照文档里提示的.env中配置AUTO_RELOAD=true ,修改代码后更新不生效
2、参照原生uv+ fastapi的方式,配置
# 使用字符串形式的应用导入路径,指向工厂函数
uvicorn.run(
"dbgpt_app.dbgpt_server",
host=param.host,
port=param.port,
log_level=log_level,
reload=True,
reload_dirs=["packages/dbgpt-app/src/"],
log_config=LOGGING_CONFIG,
factory=True
) ,这次生效了,但是router没有注册上
问题:请问有标准的配置代码热更新的方式吗?请不吝赐教,谢谢
Beta Was this translation helpful? Give feedback.
All reactions