Two ways
- Upload a built JAR to
~/web/yourdomain.com/appand choose Executable JAR — fastest. - Upload the project (with
pom.xml, orgradlewfor Gradle) and choose Spring Boot (Maven) or (Gradle) — Deploy builds it here.
The port
Spring Boot presets pass --server.port=$PORT. Other frameworks must read the PORT environment variable (Quarkus and Micronaut presets pass it as a system property).
Settings
Put SPRING_PROFILES_ACTIVE, SPRING_DATASOURCE_URL, SPRING_DATASOURCE_USERNAME, SPRING_DATASOURCE_PASSWORD in Environment variables. The JVM heap is set to 70% of your plan's RAM automatically.
Build in the terminal
cd ~/web/yourdomain.com/app
mvn -q -DskipTests package # or ./mvnw … / ./gradlew bootJar
ls target/*.jar
mkdir -p tmp && touch tmp/restart.txtWAR files
Package as an executable Spring Boot WAR and run it with java -jar; a separate Tomcat is not provided.
Stuck? Our engineers answer support tickets around the clock. Contact us, or create an account and open a ticket from the dashboard — the same guides are there too.