From a214e980e1aa83d2b9436d132cb45acff15af5f2 Mon Sep 17 00:00:00 2001 From: LAOGOU-666 <441059767@qq.com> Date: Sat, 22 Feb 2025 20:54:05 +0800 Subject: [PATCH] update --- README.md | 3 +++ README_en.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 README_en.md diff --git a/README.md b/README.md index de2cae5..90ca6dc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # ComfyUI LG_HotReload 扩展 + +[中文](README.md) | [English](README_en.md) + 一个用于 ComfyUI 的热重载扩展,安装即可,让你在开发自定义节点/安装插件时能够实时预览更改,无需重启 ComfyUI。 ## 主要特性 diff --git a/README_en.md b/README_en.md new file mode 100644 index 0000000..7ef00da --- /dev/null +++ b/README_en.md @@ -0,0 +1,49 @@ +# ComfyUI LG_HotReload Extension + + +[中文](README.md) | [English](README_en.md) + +An extension for ComfyUI that allows hot reloading. Once installed, you can preview changes in real-time while developing custom nodes or installing plugins without restarting ComfyUI. + +## Main Features + +- 🔄 Real-time hot reloading: Automatically reload nodes after modifying code +- 🎯 Intelligent monitoring: Only monitor specified file types and directories +- 🚀 Instant updates: Frontend interface automatically refreshes to display the latest changes +- 🛡️ Debounce design: Avoid performance issues caused by frequent reloads +- 📁 Support for web files: Automatically sync the web directory content of nodes +- 🔍 Route hot reloading: Support real-time updates for API routes + +## Usage + +1. Clone the repository to the `custom_nodes` directory of ComfyUI: + ```bash + cd path/to/ComfyUI/custom_nodes + git clone https://github.com/LAOGOU-666/ComfyUI-LG-HotReload.git + ``` + +2. Install dependencies: + ``` + cd ComfyUI-LG-HotReload + pip install -r requirements.txt + ``` + +3. Start ComfyUI +4. Begin editing your custom nodes. After saving, it will automatically reload; you just need to reset the nodes or refresh the webpage (this is just a plugin, there are no physical nodes, once installed you don't need to worry about it, the backend handles it automatically). + +## Notes + +- It is recommended to use in a development environment; please be cautious in production environments. +- Some complex changes may still require restarting ComfyUI. +- Ensure your code has no syntax errors, as this may affect the reloading process. + +# If you benefit from this project, consider buying the author a cup of coffee. Your support is my greatest motivation. + +
+
+