Deploying to V14 Spring Boot to Heroku...?

Hi all, I would like to deploy my V14 Spring Boot 2.2 application to Heroku. Instructions seem a bit sparse.

At the moment, I use JAR packaging and start with mvn spring-boot:run. Is it feasible to continue with this, or can I better move to WAR packaging…? Yet another alternative would be to package with Docker. What would you prefer and why?

Perhaps anyone has an example Procfile…?

Much appreciated.

Please check [this]
(https://ramonak.io/posts/how-to-deploy-vaadin-14-app-to-heroku)

Hi Katsiaryne,

Nice, thanks for sharing…!

I’ve been able to deploy to Heroku myself by changing to war build and using:

heroku war:deploy target/[app-name] -x.y.war --app [heroku-app-name] .

But, I am not 100% happy with my setup yet, so I will also try your approach.

Best, Mark

Too bad your article is no longer available, Katsiaryna. If it is available on another location, could you please link to it here…?

Mark HM:
Too bad your article is no longer available, Katsiaryna. If it is available on another location, could you please link to it here…?

I’ve updated the link in my answer. I was refactoring my site and forgot to update the link here. Thanks for letting me know!

In case you would like to try out a JAR deployment, you could check our updated tutorial at https://vaadin.com/learn/tutorials/cloud-deployment/heroku#_deploying_from_the_command_line :slight_smile: