You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you explain a bit on how live-reload works in case of tilt?
# Buildcustom_build(
# Name of the container imageref='book-service',
# Command to build the container imagecommand='./gradlew bootBuildImage --imageName $EXPECTED_REF',
# Files to watch that trigger a new builddeps= ['build.gradle', './bin/main'],
# Enables live reloadlive_update= [
sync('./bin/main', '/workspace/BOOT-INF/classes')
]
)
# Deployk8s_yaml(['config/deployment.yml', 'config/service.yml'])
# Managek8s_resource('book-service', port_forwards=['8080:8080', '9090:9090'])
In particular, what exactly is './bin/main'? I'm asking this question because I can't get this work and official examples are completely different.
The text was updated successfully, but these errors were encountered:
The live reload functionality is based on three main aspects:
The IDE continuously compiling your Java classes upon change (by default in Visual Studio Code, it must be configured in IntelliJ IDEA).
The container image supporting reloading the Java process running inside the container when a Java class is changed (Paketo Buildpacks ensures that support when using the Base builder).
A tool like Tilt or Skaffold transferring compiled Java classes from the local folder (./bin/main in Visual Studio Code, ./build/classes/java/main and ./build/resources/main in IntelliJ IDEA) into the container (/workspace/BOOT-INF/classes when using Paketo Buildpacks).
Can you explain a bit on how live-reload works in case of tilt?
In particular, what exactly is
'./bin/main'
? I'm asking this question because I can't get this work and official examples are completely different.The text was updated successfully, but these errors were encountered: