How to use Hot Reload with HTML bundle?

I want to use the Hot Reload feature for my HTML bundle, but the documentation doesn’t seem to mention HTML bundles.

I was able to host a local http server using python as suggested in the HTML documentation and entering http://0.0.0.0:8000 successfully loads it in my browser .

But, from here how can I connect my defold editor to the HTML bundle? The editor has a “Enter Target IP” window and I enter 0.0.0.0:8000 but I get the following errors

[http://0.0.0.0:8000/upnp] error getting XML description...

My terminal is also complaining,
code 404, message File not found "GET /upnp HTTP/1.1" 404

You can’t hot reload on HTML5 I’m afraid. If you want to rapidly iterate on game logic or similar using hot reload then you need to do that using a desktop build.

2 Likes