This tutorial shows you how to deploy a Vaadin application to Google Cloud App Engine. Google Cloud has free-trial and free-tier offerings that you can read more about on Google Cloud website.
Google Cloud account requiredTo complete this tutorial, you need to sign up for a Google Cloud account at https://cloud.google.com/. Your Google Cloud account should also have the billing enabled.
To begin, download and install the Google Cloud SDK.
Once installed, run the following command from a terminal window to add the App Engine support for Java to the SDK.
gcloud components install app-engine-java
Download a minimal Vaadin project and unpack the downloaded zip into a folder on your computer.
Open the project directory from a terminal window, and enter the following command to initialize a Google Cloud Project:
If this is your first time running Google SDK, you will be asked to authenticate your account. When prompted to login, enter 'Y' and allow the SKD to control your account in the opened browser window.
Once authenticated, you will prompted to select a configuration. Enter '1' to select the default configuration as in the following snippet:
Settings from your current configuration [default] are: accessibility: screen_reader: 'False' core: account: firstname.lastname@example.org disable_usage_reporting: 'True' Pick configuration to use:  Re-initialize this configuration [default] with new settings  Create a new configuration Please enter your numeric choice: 1
From a terminal window at the project’s root directory, create a Google App Engine instance using the following command:
gcloud app create
You will then be asked to select a region. Feel free to choose a region that is the most proximate to your users.
Open the project directory from a terminal window, and enter the following command to generate a JAR file of your application:
mvn package -Pproduction
From a terminal window at the project root directory, enter the following command to deploy the application to Google Cloud:
gcloud app deploy target/myapp-1.0-SNAPSHOT.jar
When the deployment completes, the application URL will be displayed in the logs.
Ensure Google Cloud billing is enabledIf the deployment fails with an error similar to