Triggering hot reload on Editor via http?

Hi, i’m using external editor, is it possible to trigger hot reload on Defold Editor via http?

I want to make the editor reload when the some files are modified.

Thank you for the answer

External tools can connect to the running editor and interact with it using a REST API.

2 Likes

Thank you for the answer.

I’ve trying to http GET on openapi.json at http://localhost:[port]/openapi.json, but i keep getting 404 not found error.

Is there anything that i miss? I’m running defold using ./Defold --port 8181.

I’m using Defold 1.11.1

Turns out need to update to 1.12.3 to access openapi.json

but 1.12.3 has issues with hot reloading, hot reloading was broken for me since 1.12.0.

in 1.12.3 when file is changed, hot-reload does not want to trigger and keep printing WARNING:DLIB: Actual content differs from expected content-length (0 != 33) to the console. It seems, the editor doesn’t realize that the file has been changed

OpenAPI spec is new, but the HTTP endpoint is not. I believe it is available in 1.11.1, you can call the same commands:

You can create an issue on GitHub with a simple reproducible project: