Skip to content

Add .epinio-sync.yaml so app watch can rebuild this Java example. - #2

Open
psanghvi17 wants to merge 1 commit into
mainfrom
feat/EPINIO-711-epinio-sync-yaml
Open

Add .epinio-sync.yaml so app watch can rebuild this Java example.#2
psanghvi17 wants to merge 1 commit into
mainfrom
feat/EPINIO-711-epinio-sync-yaml

Conversation

@psanghvi17

Copy link
Copy Markdown

Summary

  • Add .epinio-sync.yaml so this Spring Boot example is compatible with epinio app watch (EPINIO-711).
  • Java is compiled, so the config uses binary mode (build_cmd + binary) with inline comments on how watch works. The boot jar is wrapped so the pod can launch it with the Paketo JRE.

Test plan

  • epinio push --name example-java --path .
  • epinio app watch example-java --path . (JDK 21 on the machine that runs watch)
  • Change src/main/java/com/example/demo/DemoApplication.java, confirm a sync, and see the change after refresh

Add .epinio-sync.yaml to enable epinio app watch for the Spring Boot app. The config rebuilds the boot jar, wraps it in a small executable launcher that calls the Paketo BellSoft JRE, and uploads the binary to sync local changes into the running pod.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant