Deploying an App Engine application using an archive file

This page describes how to deploy your project to the Google App Engine flexible environment using a WAR archive or a runnable JAR file.

Before you begin

You need a Google Cloud Platform project with an App Engine application to deploy to. If you don't have one, use the Cloud Platform Console to set up your project:

Go to GCP Console

  1. Select or Create a new GCP project.

  2. Select the region where you want your app located.

Deploy a JAR or WAR file

To deploy a pre-existing WAR or runnable JAR file to the flexible environment:

  1. Prepare an app.yaml file. At a minimum, it should contain the following lines:

    runtime: java
    env: flex
    
  2. Click the Google Cloud Platform toolbar button .

  3. Select Deploy Existing WAR/JAR File to App Engine Flexible... in the drop-down menu.

    A dialog box to configure the deployment. It provides a drop-down menu
 to select an Account, a list of Projects to deploy to, a field displaying
 the path to the WAR/JAR file, a button to Browse to a new WAR/JAR file, a
 field displaying the path to the app.yaml file, a button to Browse to a new
 app.yaml file, a checkbox to Promote the deployed version to receive all
 traffic, a checkbox to Stop previous version, a checkbox to include
 optional App Engine configuration files, an expansion panel for Advanced
 options, and a field for entering a Staging bucket.

  4. Select the Account you want to deploy with, or add a new account.

  5. In the Project list box, select the Google Cloud Platform project you want to deploy to.

  6. In the WAR/JAR field, click Browse to select the archive file.

  7. In the app.yaml field, click Browse to select your app.yaml file.

  8. If you want to keep the current version running and manually promote the new version later using gcloud or the Google Cloud Platform Console, clear the Promote the deployed version to receive all traffic checkbox.

  9. If you don't want to stop the previous version, clear the Stop previous version checkbox.

  10. Click Deploy.

  11. After successful deploy, Eclipse will open an internal browser connecting to the deployed app.

What's next

Send feedback about...

Cloud Tools for Eclipse