Reputation: 5700
I use hot deploy ./mvnw compile quarkus:dev
. According to the documentation, I do only need to change the files without saving it and refresh the browser. However, in my case hot deploy does only work if I save the file before requesting the page. I used the getting-started-project from quarkus quickstarts. My question is: Is this the right behaviour (change file->save file->request page) and the following statement wrong (change file->request page):
https://www.baeldung.com/quarkus-io (section 4: hot reload)
In other words, changes made to Java files or to configuration files will automatically be compiled once the browser is refreshed. The most impressive feature here is that we don't need to save our files. This could be good or bad, depending on our preference.
Upvotes: 0
Views: 815
Reputation: 10539
You absolutely need to save your files for hot reload to be triggered.
The update is based on the file timestamps to have changed.
What you don't need is recompiling your application or restarting anything.
Upvotes: 3