stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

hot-reload javascript files

Open zhengxiaoyao0716 opened this issue 2 years ago • 5 comments

hot-reload the javascript files without restart the backend-app when click the reload_script_bodies button, that's really useful when we just want to upgrade static scripts. I have already used this feature to develop my custom frontend scripts .

zhengxiaoyao0716 avatar Oct 16 '22 09:10 zhengxiaoyao0716

firefox_nagKUO4kwy

this button already does it

AUTOMATIC1111 avatar Oct 18 '22 12:10 AUTOMATIC1111

firefox_nagKUO4kwy

this button already does it

This button will restart the app, instead of live-reload.

zhengxiaoyao0716 avatar Oct 18 '22 12:10 zhengxiaoyao0716

It does not restart the app. You still have the same process running after you press the button.

AUTOMATIC1111 avatar Oct 18 '22 14:10 AUTOMATIC1111

But I found the gradio app was restarted and the public url was changed.

zhengxiaoyao0716 avatar Oct 18 '22 16:10 zhengxiaoyao0716

@AUTOMATIC1111 Well, I'm sorry but, maybe our differences are here: I lean towards traditional browser-server app, server should always be available, we can easily upgrade or extends the app without suspend the server. Based on the same consideration, I add feature auto install scripts to simplified maintenance toolchain, share prompt online to improve users experience. But you seems just treat it as a local client, restart the gradio and interrupt the service temporarily is not a problem for you, no toolchain for plugin, and no multi-users scenes need to consider.

zhengxiaoyao0716 avatar Oct 18 '22 17:10 zhengxiaoyao0716

when I use the Restart Gradio and Refresh components button to reset web, I get error like this: image And I try the last ui.py before this merge, it works well. It will not affect normal use, but I hope this error can be resolved. @zhengxiaoyao0716

sgmklp avatar Oct 19 '22 11:10 sgmklp