This topic describes how to create, deploy, view, update, and delete an application. It also allows you to modify and release a deployment environment.

Background information

Before using Web+ to deploy an application, you must create an application and deployment environment. Then, you can upload a deployment package to the deployment environment and deploy the application. An application can run in multiple deployment environments, and only one application can run in one deployment environment.

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 Deployment Environments section.
  3. In the Basic Information step, configure the required settings. After the configuration is complete, click Next.
    • Select a Technology Stack Type. Available technology stack types include TomcatJavaNode.jsGoPHPPythonASP.NET CoreRubyand Native.
    • Enter an Application Name and Application Description.
  4. In the Deployment Environment Information step, configure the required deployment environment and deployment package settings. Then, click Create with Low Cost Preset to create a deployment environment with the Pre-defined Configuration setting specified as Low-cost. You can also click Next to go to the Configurations step and configure the required settings.
    • Select an option from the Technology Stack Version drop-down list. An option that is marked with a star icon indicates a recommended technology stack version.
    • Enter a Deployment Environment Name and Deployment Environment Description.
    • You can select Upload Local Application or Use Sample Application in the Deployment Package Source setting.
      • 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 Pre-defined Configuration setting. After the configuration is complete, click Creation Complete.
    • 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 Actions dialog box, confirm the list of specified resources and their 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 deployment environment details and open the homepage of the application

After creating an application and deployment environment, you can log on to the Web+ console and open the Overview tab of the Environment Details page. On the tab, you can perform deployment environment operations, such as start, stop, restart, release, delete, and configure. You can also view the deployment package version, status, technology stack, owner, operation time, public IP address, and a list of 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 Deployment 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 lick 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 Deployment Environments section.
  3. On the Applications and Deployment Environments page, click the > icon next to the name of an application to show a list of linked deployment environments.
  4. Click the name of a deployment environment to go to the Overview tab of the Environment Details page.
  5. Click Deploy in the upper-right corner.
  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 Deployment Environment Details page. When the version of a deployment package is being updated, an animated icon appears next to the Deployment 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 the instructions 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 Deployment Environments section.
  3. On the Applications and Deployment Environments page, click the > icon next to the name of an application to show a list of linked deployment environments.
  4. Click the name of a deployment environment on the list of linked deployment 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

You have to make sure all deployment environments that run an application are released before deleting the application. After you release a deployment environment, all resources that reside in the deployment environment will be released. These resources include ECS instances or the SLB instance. Therefore, you stop being charged for these resources.

  1. Release a 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 Deployment Environments section. On the Applications and Deployment 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 of the deployment environment, and then select Release from the drop-down list.
    4. In the Release Environment dialog box, enter the name of the environment and click OK.
    5. If an application is deployed in multiple deployment environments, repeat the preceding steps to release all deployment environments that run the application.
  2. Go to the Overview tab of the Application Details page, click Delete Application in the upper-right corner of the page. In the Confirm Application Deletion dialog box, click OK to delete the application.