# Deploy to the App Engine Standard Environment in Cloud Code for IntelliJ

> [!CAUTION]
> **Caution:** As of January 31, 2024, Java 8 support for App Engine has ended, and will be deprecated on January 31, 2026. As a result, Cloud Code disables App Engine by default. To enable App Engine in your IDE, navigate to **Settings** \> **Google
> Cloud Code** \> **App Engine** . For more information about the runtime support schedule for App Engine, see [Runtime support schedule](https://docs.cloud.google.com/appengine/docs/standard/lifecycle/support-schedule).

This document describes how to deploy an App Engine application to the
[App Engine standard
environment](https://docs.cloud.google.com/appengine/docs/standard)
from within IntelliJ IDEA.

> [!NOTE]
> **Note:** The following IDEs support this feature:
>
> - IntelliJ IDEA - Ultimate
> - IntelliJ IDEA - Community

> [!NOTE]
> **Note:** For the App Engine standard environment, only Java applications using [Java 8 runtime](https://cloud.google.com/appengine/docs/standard/java/runtime) are supported on Cloud Code.

> [!NOTE]
> **Note:** If you are using IntelliJ IDEA Community Edition, you can deploy Maven-based and Gradle-based projects to the App Engine standard environment.

## Before you begin

- Follow the [Create an App](https://docs.cloud.google.com/code/docs/intellij/create-standard)
  guide to install and set up Cloud Code as well as
  create an App Engine app for the standard
  environment. Be sure to add
  [App Engine standard framework
  support](https://docs.cloud.google.com/code/docs/intellij/create-standard#framework).

- If you have a Gradle-based project and are using IntelliJ IDEA Community
  Edition, configure your project with the [App Engine Gradle
  plugin](https://github.com/GoogleCloudPlatform/app-gradle-plugin#how-to-use).
  Be sure to sync your project with Gradle.

  If you don't have an application but still want to try these deployment
  procedures, download the sample app:
  1. Clone the **Hello World** sample app to your local machine:

           git clone https://github.com/GoogleCloudPlatform/java-docs-samples

  2. In IntelliJ, select **File** \> **Open** to open the file selector.

  3. Navigate to `/java-docs-samples/appengine-java8/`.

  4. Select the `/helloworld/` directory.

  5. Click **OK**.

## Creating the deployment configuration

1. Choose **Tools** \> **Cloud Code** \> **App Engine** \>
   **Deploy to App Engine**.

2. Confirm the server configuration:

   1. Click the ellipsis (...) next to the **Server** field.

   2. In the dialog, verify that the **Name** field displays
      **Google App Engine**.

   3. Click **OK**.

3. Select the **Deployment** source.

   If you're using Community Edition, Cloud Code for IntelliJ only supports
   deploying from a Maven or a Gradle artifact.
4. Select a project in the **Project** field.

   The first time you configure the deployment, you will be prompted to sign in
   to the account associated with the Google Cloud console project that
   you want to deploy.

5. Fill in other fields as needed to configure the deployment.

6. Click **Run** to build and deploy your app.

7. In the Application Servers window, click the name of your project to monitor
   its deployment progress. If the window is not displaying, click
   **View** \> **Tool Windows** \> **Application Servers**.

   After deployment completes, you can view your app's URL in the console
   output.

## Update the App Engine standard configurations

After creating the initial deployment configuration, you can make changes to
those configurations as needed by your application.

1. Select **File** \> **Project Structure**.

   The **Project Structure** dialog displays.
2. Under **Project Settings** , select **Facets**.

3. Select the App Engine standard facet.

   <br />

4. Select the libraries you want to add to your project.

5. Click **OK**.

## Deleting the server

If you ever want to delete the server you configured for your
project, you can do so as follows:

1. Choose **File** \> **Settings** \> **Build, Execution, Deployment** \>
   **Clouds**.

   On macOS, this is **IntelliJ IDEA** \> **Preferences** \>
   **Build, Execution, Deployment** \> **Clouds**.
2. Select your server (App Engine) and click the minus sign (-) at the
   top of the window to remove it.

3. Click **OK**.

## What's next

- You can add your project to [Cloud Source Repositories](https://docs.cloud.google.com/code/docs/intellij/vcs) if you haven't done so already.

## Get support

To submit feedback or report an issue in your IntelliJ IDE, go to
**Tools** \> **Cloud Code** \> **Help / About** \> **Submit
feedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues).