edit-icon download-icon

Publish applications

Last Updated: Feb 02, 2018

To publish an application, you need to create an application first, deploy it, and then configure load balancing.

Prerequisites

Make sure an ECS instance has been imported to the region where you want to publish an application. Otherwise, import an ECS instance first.

Step 1: Create an application

  1. Log on to the EDAS console, and click Applications in the left-side navigation pane.

  2. Click Create Application at the upper-right corner of the Applications page.

  3. In the Create Application dialog box, select Application Runtime Environment, enter an Application Name, and select Namespace. Then click Next.

    Create an application

    Field description:

    • Application runtime environment: If you have no special needs, select the latest EDAS Container version.
    • Application name: A meaningful name is recommended.
    • Namespace: Select the namespace where you want to publish the application.
  4. Select Application Type and Cluster and specific ECS instances.

    • Application Type: Select Regular Application.

    • Cluster and ECS instances: Select cluster and ECS instances where to create the application.

      Network type deponds on the selected cluster.

Step 2: Deploy the application

  1. Log on to the EDAS console and click Applications in the left-side navigation pane.

  2. On the Applications page, click the name of the your application to go to the application’s details page. Click Deploy Application at the upper-right corner.

  3. In the Deploy and Publish Application dialog box, set the relevant parameters and then click Deploy Application.

    Note: EDAS allows you to deploy an application to multiple ECS instances at the same time. In this example, the application is deployed to one instance. Therefore, select the default value “1 Batch(s)” from the Batch drop-down list.

    Deploy and Publish App

    • File Uploading Method: Select Upload WAR Package and click Download Demo Project to save the compiled WAR package to your local storage.

    • Upload WAR Package: Click Select File and select the downloaded demo project WAR package.

      To learn about how to develop WAR packages, see Service Development in the Developer Guide.

    • Enter Version: Enter the application version.

    • Publish to Group: Select the target group from the drop-down list. If you have no special requirements, select Group: Default Group.

    • Batch: Select 1 Batch(s).

    • Batch Mode: Select Automatic.

    The file upload progress is shown at the top of the dialog box. After it reaches 100%, you are redirected to the change order page, where you can see the deployment progress. After deployment, the status changes to Execution Successful.

Step 3: Configure SLB

Before configuring SLB, make sure your have an SLB instance. Otherwise, first create an SLB instance and configure the SLB instance.

  1. In the left-side navigation pane, click Basic Information to return to the Application Details page. In the Application Settings section, click Add to the right of SLB (Intranet) or SLB (Internet).

  2. In the Bind SLB to Application dialog box, select the address of your private or public SLB instance from the SLB (Intranet) or SLB (Internet) drop-down list.

    Note: If no SLB address is available in the list, first create a SLB instance and configure the SLB instance. Then, go to Resources > SLB in the EDAS console and click Synchronize SLB at the upper-right corner of the page to get the SLB address.

    Bind SLB to App

  3. (Optional) To monitor the SLB port, check SLB Port Monitoring, set the SLB Frontend Port, and then click Configure SLB.

Verify result

After publishing the application, copy the added SLB and port, paste it in your browser’s address bar, and press Enter. The application’s welcome page is displayed.

Thank you! We've received your feedback.