This topic describes how to create, deploy, view, update, and delete an application. It also provides instructions about how to modify and release a deployment environment. You can use the Web App Service console to perform the following operations.

Background information

Before using Web App Service to deploy an application, you must create an application and deployment environment and upload a deployment package to the deployment environment. An application can run in multiple deployment environments. However, each deployment environment can only host one application.

Step 1: Create and deploy an application

  1. Log on to the Web+ console.
  2. On the Overview page, click Create in the upper-right corner of the Last Updated Environments section.
  3. Configure the required settings in the Basic Information step, and click Next after the configuration is complete.
    • Select a Tech Stack Type. Available technology stack types include Tomcat, Java, Node.js, Go, PHP, Python, ASP.NET Core, Ruby, and Native.
    • Enter an Application Name and Application Description.
  4. In the Environment Information step, configure the required settings for the deployment environment and deployment package. Then, click Create with Low Cost Preset to create a low-cost deployment environment. You can also click Next to go to the Configurations step and configure more settings.
    • Select an option from the Tech Stack Version drop-down list. An option that is marked with a star icon indicates a recommended technology stack version.
    • Enter an Environment Name and Environment Description.
    • You can select Upload Local Application or Use Sample Application in the Package Source field.
      • Upload Local Application: You can click Select File to upload a local deployment package.
      • Use Sample Application: You can use a sample deployment package that is provided by Web App Service rather than uploading a local deployment package.
  5. In the Configurations step, select an option in the Preset Configuration field.
    • Low-cost: A low-cost configuration only includes one ECS instance with a minimum specification that you can purchase in the current zone, click Create with Low Cost Preset after selection.
    • High Availability: A high-availability configuration includes two instances with a minimum specification and one SLB instance of the Performance Sharing type, which you can purchase in the current zone, click Create with High Availability Preset after selection.
    • Custom: A custom configuration includes resources and applications specific to a deployment environment based on your business requirements. You can follow the instructions provided in the following topics to configure custom settings. If the Pre-defined Configuration setting is not specified, Web+ uses the low-cost configuration for a new deployment environment by default, please see Deployment environment overview. Click Create with Custom Configuration after configuration.
  6. In the Note dialog box, confirm the list of specified resources and related configurations and click OK.
  7. In the Finish step, you can view the process of creating the application.
    • You can click View Application or Finish to open the Application Details page.
    • You can click View Deployment Package Version to open the Deployment Package Versions page.
    • Click View environment Logs to go to the Deployment Environment Events page.

Step 2: View environment details and open the homepage of the application

You can log on to the Web+ console after you create an application and deployment environment. On the Overview tab of the Environment Details page, you can perform common operations on the deployment environment. The operations that you can perform on the deployment environment include start, stop, restart, release, and delete. You can view specific information about the deployment environment. This includes the environment version, status, technology stack, created by, created at, public IP address, and latest events that occur in the deployment environment.

  1. Log on to the Web+ console.
  2. On the Overview page, click View All in the upper-right corner of the Last Updated Environments section.
  3. On the Applications and Environments page, click the > icon next to the name of an application to show a list of linked deployment environments.
    Note On the Environments list, the most recently updated four deployment environments are displayed. If the required deployment environment is displayed on the list, you can click the specific name to go to the Environment Details page.
  4. Click the name of a deployment environment to go to the Overview tab of the Environment Details page.
  5. If a green dot appears next to the name of a deployment environment, it indicates that the deployment environment is in the Running state. You can click the link next to the Public IP Address label to open the homepage of the application.

Step 3: Update a deployment package

If no processing change exists in a deployment environment, you can upload a new deployment package.
  1. Log on to the Web+ console.
  2. On the Overview page, click View All in the upper-right corner of the Last Updated Environments section.
  3. On the Applications and Environments page, click the > icon next to the name of an application to show a list of linked environments.
  4. Click the name of an environment to go to the Overview tab of the Environment Details page.
  5. In the upper-right corner, click Deploy.
  6. In the Environment dialog box, follow the provided instructions to configure a new deployment package and click OK.

Web App Service will deploy the new deployment package on ECS instances that reside in the deployment environment. You can view the deployment status on the Overview tab of the Environment Details page. When the version of a deployment package is being updated, an animated icon appears next to the Package Version label. After the deployment is complete, a green dot appears next to the name of the deployment environment. This indicates that the deployment environment is in the Running state. The new version of the deployment package is also added to the list of deployment package versions.

Step 4: Change deployment environment settings

If you want to change deployment environment settings after an application and deployment environment are created, you can follow these steps to go to the Configurations tab of the Deployment Environment Details.

  1. Log on to the Web+ console.
  2. On the Overview page, click View All in the upper-right corner of the Last Updated Environments section.
  3. On the Applications and Environments page, click the > icon next to the name of an application to show a list of linked environments.
  4. Click the name of an environment on the list of linked environments.
  5. In the left-side navigation pane of the Environment Details page, click Configurations.
  6. On the Configurations tab, configure the required resources for the deployment environment.
  7. Click Edit Configuration to update the configurations.
  8. In the Edit Configuration dialog box, confirm configuration changes and click OK.
  9. Go to the Overview tab of the Environment Details page to view the status of the deployment environment.

    If the dot next to the specific name of the deployment environment is green, it indicates that the deployment environment is updated.

Step 5: Delete an application

Before deleting an application, you must ensure that all deployment environments that run the application are released. After you release these deployment environments, resources that are included in these deployment environments will be released. These resources include Elastic Compute Service (ECS) and Server Load Balancer (SLB) instances. Then, you will no longer be charged for these released resources.

  1. Release an environment:
    1. Log on to the Web+ console.
    2. On the Overview page, click View All in the upper-right corner of the Last Updated Deployment Environments section. On the Applications Environments page, click the ID of an application to be deleted. Then, you are directed to the Overview tab of the Application Details page.
    3. Select a deployment environment, click the more details icon in the upper-right corner of the card for the environment, and then select Release from the drop-down list.
    4. In the Release Environment dialog box, enter the name of the deployment environment and click OK.
    5. If an application is deployed in multiple environments, repeat the preceding steps to release all environments that run the application.
  2. Go to the Application Details page. In the upper-right corner of the page, click Delete Application, and click OK in the Confirm Application Deletion dialog box to complete the deletion.

References

  • Web App Service allows you to host applications in the console. You can also use the CLI tool to perform all hosting operations. For more information about how to use the CLI tool, see Use CLI commands.
  • For more information about how to manage hosted applications, see Overview of application details.
  • For more information about how to manage environments, see Deployment environment overview.