ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Hot-reloading not working?

Open 400yk opened this issue 1 year ago • 2 comments

Describe your problem

I use Ragflow as base framework to develop my web app. I mounted web/src through docker-compose.yml and checked that whenever code changes are made, they're updated in container in real-time. However, I can't see hot-reloading in web page, unless I rebuilt the image or restart the container.

I also tried moving npm start from Dockerfile to entrypoint.sh and replacing "npm run build" with "npm start", it doesn't work.

From my understanding, hot-reloading should be an automatic feature in React

Any help? Thanks!

400yk avatar Aug 19 '24 03:08 400yk

After code modification, run ""npm run build"" to make it work.

KevinHuSh avatar Aug 19 '24 05:08 KevinHuSh

After code modification, run ""npm run build"" to make it work.

although still not hot-reloading, but better than rebuilding the image. Thanks!

400yk avatar Aug 21 '24 13:08 400yk

run_simple( hostname=settings.HOST_IP, port=settings.HOST_PORT, application=app, threaded=True, use_reloader=True, use_debugger=True, reloader_type='watchdog' )

This is the setting, but it cannot be hot overloaded, may I ask how to solve it?

1953705297 avatar May 06 '25 10:05 1953705297

Image

1953705297 avatar May 06 '25 10:05 1953705297