Skip to content
quickstart vaadin on heroku
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Vaadin on Heroku

The goal of this project is to demonstrate how to build a Vaadin application and deploy it on Heroku.

It uses Embed for Vaadin to configure and start an embedded tomcat configured to start Vaadin and store session in memcached.

What is heroku specific in there?

  • Procfile: Heroku is using foreman to launch processes and the Procfile is the file that define the processes.
  • maven-dependency-plugin configured in the pom of the server module to copy the dependencies.
  • Launcher class that will configure the tomcat server based on env variables and launch it.
  • DevLauncher class in test that you can call directly from your IDE to develop faster.
  • Launchers use vaadin-for-heroku which is available through maven central.

Where tho go from here?

If you never used heroku before, install the toolbelt and create an account.

Clone this repository

git clone

Create the heroku stack that will receive the application

heroku create --stack cedar

Heroku will create your app and give you it's url. You can change it later.

You'll also need to add the memcache add-on. In order to add it, you'll have to verify your credit card information. As long as you use the free version of the add-on and you only use one dyno, you won't get charged. If you do not want to give your credit card information, edit the server Launcher and remove the configuration of memcached. You will only be able to use one dyno, and session will be lost when your dyno is restarted but you'll be able to try heroku.

To add memcache add-on oyu can go to the heroku interface, or type the following command:

heroku addons:add memcache

Then push the application like this :

git push heroku master

And the application is up and running.

As an example, this application is deployed on heroku and accessible at

Bitdeli Badge

You can’t perform that action at this time.