Hilla Project Deployment

What the fastest way to deploy a hilla project for testing or production

This is a very “general” question, but given that Hilla supports Spring Boot, I would go with docker. When you create a new application on start.vaadin.com you can enable the “Docker config” check so it will create basic docker configurations for you that you could use in order to create productive docker definitions.
Using spring boot + docker will avoid choosing a servlet container and using the old legacy way of deploying JEE applications (copying a war file, configuring the servlet container, etc.)


If you prefer to create a JAR file and run your application from that file, you’ll find all you need to know in the official Hilla docs: Production Build | Deploying to Production | Guides | React | Hilla Docs.

cd my-app/
mvn clean package -Pproduction
java -jar target/my-app-1.0-SNAPSHOT.jar

If you like to share your app with others, you could try fly.io. I haven’t tried it yet, but there are some posts here in the forum from other people who use it.

1 Like