mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 00:06:04 +00:00
feat: 热更新和热重载功能
This commit is contained in:
7
pkg/utils/updater.py
Normal file
7
pkg/utils/updater.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def update_all():
|
||||
try:
|
||||
from dulwich import porcelain
|
||||
repo = porcelain.open_repo('.')
|
||||
porcelain.pull(repo)
|
||||
except ModuleNotFoundError:
|
||||
raise Exception("dulwich模块未安装,请查看 https://github.com/RockChinQ/QChatGPT/issues/77")
|
||||
Reference in New Issue
Block a user