kweb-core icon indicating copy to clipboard operation
kweb-core copied to clipboard

reload page on code changes in debug mode

Open stangls opened this issue 6 years ago • 6 comments

When running my KWeb application in debug mode from the IDE, I would like to have the browser reload the page when there are code changes.

stangls avatar Dec 25 '19 22:12 stangls

I got this working a while back using DCEVM, however I wasn't really using it and so I removed it until I could spend time on it and get it working properly.

You can find the original code here, it shouldn't be too difficult to add it back into the current master branch if anyone would like to take a stab at it.

sanity avatar Dec 26 '19 22:12 sanity

@stangls I was looking for this and eventually found it, it was the old documentation for the code I mentioned before: https://kweb.io/use/live-coding.html

sanity avatar Jan 07 '20 00:01 sanity

It's probably much easier to use Ktor's autoreload and depending on your build tool, some variation of the watch/compile commands. The Ktor page provides documentation on how to do it in Gradle and IDEA

alkoclick avatar May 09 '20 18:05 alkoclick

Thanks, I found appropriate solution in Ktor.

stangls avatar May 16 '20 18:05 stangls

Hey @alkoclick how did you get Ktor's autoreload to work? I can't seem to get gradle either to autobuild not autoreload the webpage using the tutorial you linked!

kernitus avatar Jul 31 '21 12:07 kernitus

Sorry @kernitus don't remember much anymore :/ I do remember that I also had trouble implementing it, and when I finally did it, the solution was pretty flaky, so I ended up dropping it. Sorry for the delay!

alkoclick avatar Aug 19 '21 15:08 alkoclick

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 14 '22 04:10 github-actions[bot]

Modified issue

Should verify that Ktor's autoreload works with Kweb, and document its use.

sanity avatar Oct 16 '22 17:10 sanity

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 16 '22 03:11 github-actions[bot]