-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
area/devmodetriage/out-of-dateThis issue/PR is no longer valid or relevantThis issue/PR is no longer valid or relevant
Description
In Quarkus, we have an integrated live reload model that listens to resources (like config files) and .class changes.
When someone hits refresh in the browser, Quarkus checks if any file has changed and restart the app
(not the JVM).
It’s fast enough (less than .5 to 1s for a reasonable size app).
So for Quarkus we do need of odo watch to rsync specific directories so that Quarkus’s live reload that we call quarkus:dev today kicks in accordingly.
Note that it's different from a classical S2I Java process which AFAIK is like this:
- push code
- s2i starts maven build
- start java app off the maven build
In the Live reload mode, the model is more like this
- enable odo watch
- deploy the container which will run
mvn package quarkus:dev
and be ready to listen to requests - on .class or resource changes in a specific set of directories, rsync said files into the container in the specific location
/some/determined/path/target
- on resource changes, Quarkus does its magic from within the container
Metadata
Metadata
Assignees
Labels
area/devmodetriage/out-of-dateThis issue/PR is no longer valid or relevantThis issue/PR is no longer valid or relevant