Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin on Heroku

Nicolas Hurion
1 decade ago Jul 07, 2012 4:54pm


Heroku is one of those Cloud platform where you can host your Java web application.
It's free if you have small needs, like for an application that only require one "dyno" and no database or a very small database.

I've made an "Hello wolrd" application that use the add-on Embed for Vaadin and run it on Heroku, with sessions stored in memcached.

Details and source code can be found in the github repository.

The deployed application can be reached at http://hello-vaadin-heroku.herokuapp.com/


Last updated on Jul, 7th 2012
Clay Selby
1 decade ago Jul 28, 2012 6:36pm

This was exactly what I was looking for. Thank you for the awesome tutorial! I ran into a few problems myself trying to recreate from scratch. For some reason, per Heroku logs, Heroku was not able to detect my web process. I added the Procfile and was able to build/run locally. However, Heroku was unable to detect the web process.


web:	java -cp target/classes:target/dependency/* com.helloworld.HerokuTester.Tester

Java main():


Thanks again for the awesome post. I am looking at utilizing this as a template for my Vaadin + Heroku projects.


Thanks again,


Nicolas Hurion
1 decade ago Aug 15, 2012 3:13pm
Nicolas Hurion
1 decade ago Oct 18, 2012 11:35am

After making a few small applications, I ended up rolling out my customized embed for vaadin as a maven artifact available from maven central.

It's called vaadin-for-heroku.

I've made a blog post explaining what it does and how to use it: Deploy a Vaadin application on Heroku.
And the code is available on github.

Last updated on Oct, 18th 2012
Djeison Selzlein
7 years ago Aug 28, 2015 12:15pm
Teemu Suo-Anttila
6 years ago Nov 22, 2016 12:23pm

I recently took a look at Heroku deployment for my add-on online demo. I managed to do it relatively easily with a GitHub autodeploy and a Procfile with some changes to my main pom.xml . You can see my functioning example at http://github.com/tsuoanttila/sidemenu-addon and the live demo at http://sidemenu.herokuapp.com

Damir Demirovic
6 years ago Jan 26, 2017 2:53pm
Hans Muff
5 years ago Nov 04, 2017 9:45am
Petr Mikolas
5 years ago Feb 15, 2018 2:16pm
Johannes Häyry
3 years ago Aug 29, 2019 7:13am
Johannes Häyry
3 years ago Aug 29, 2019 9:46am
Anastasia Smirnova
2 years ago May 26, 2020 10:40am