I can run a development server locally via bal run and interact with my API via Swagger in VSCode (very nice!), however, it seems that I have to kill & restart the server to reflect code changes?
Is there a smarter way to automatically hot reload code changes & update the server?
I first-off expected the default behaviour to reflect code changes.
I then figured I could opt in via an option to bal run, but looking at bal run --help I didn't see any --debug or similar option?
Currently, there is no official support for this. But I sometimes use a shell script to do this.
Here, you have to provide the absolute path for the DIRECTORY_TO_WATCH (e.g. "/Users/dulaj/Desktop/temp/servo").
Also, you have to give
+xpermission to the file. via the following command.