Deploy applications to SAE using Eclipse

更新时间:
复制 MD 格式

Cloud Toolkit lets you quickly deploy applications to SAE. This method is ideal for scenarios that require rapid application updates. After you install and configure Cloud Toolkit in Eclipse, you can set the deployment parameters on the configuration interface to automate the deployment.

Prerequisites

Procedure

  1. In the Project Explorer pane, right-click the project that you want to deploy and choose Alibaba Cloud > Deploy to SAE... from the shortcut menu.

  2. In the Deploy to SAE dialog box, set the deployment parameters.

    Note

    If you have not created an application in SAE, click Create Serverless Application on SAE console in the upper-right corner of the dialog box to go to the SAE console and create an application.

    The following table describes the deployment parameters.

    Parameters

    Parameter

    Description

    Application

    Region

    The region where the application is located.

    Namespace

    The namespace where the application is located.

    Application

    The name of the application.

    Deploy File

    Maven Build

    If you select this option, the system adds a Maven task to build the deployment package. To deploy a submodule of a multi-module project, see Deploy a submodule of a multi-module project using Eclipse.

    Upload File

    If you select this option, upload your WAR or JAR package to deploy.

    Image Address

    When you select the Image method to build an application, you must enter a Registry Address before deploying the application.

    Note

    If you deployed the application from a JAR or WAR package, you can only select the Maven Build or Upload File deployment method in Cloud Toolkit. If you deployed the application from an image, you can only select the Image deployment method.

  3. Click Deploy.

Verify the result

After the deployment starts, deployment logs are displayed in the Console view of Eclipse. Check the logs to verify the deployment result.

You can also log on to the SAE console and view the update records on the Change History page of the application.