Updated on 2024-05-10 GMT+08:00

Deploying an Application

You can deploy applications using the following methods:

  • Re-deployment: Deploy an existing application again. This method applies to the scenario where the original application configurations are used to complete deployment.
  • Rollback: Select a historical deployment record to roll back the application. Deployment records of the last 31 days can be retained. This method applies to the scenario where the historical application configurations are used to complete deployment.

Prerequisites

  • An application is available. If no application is available, create one by following the instructions provided in Creating an Application.
  • You have the permission to deploy applications. For details, see Application Permission Matrix.
  • A deployment record is available for the target application in the rollback scenario.

New deployment

  1. Go to the CodeArts homepage and click the target project name to access the project.
  2. Choose CICD > Deploy.
  3. Select the target application in the application list and click .

  4. If runtime parameters are configured, the parameter setting dialog box is displayed. Enter the parameter values and click OK to deploy the application. For details, see Managing Parameters.
  5. After the deployment is complete, click the application name and click the target deployment record. The application status bar changes to green and the message Successful is displayed, indicating that the application is successfully deployed.

    The following figure shows that the deployment is successful.

    If the application status bar turns red and displays Failed, the application fails to be deployed. In this case, click View Solution.

    Each time an application is deployed, a version record is added. The record with the largest ID is the latest deployment record. Deployment records of the last 31 days can be retained.

Rollback Deployment

  1. Go to the CodeArts homepage and click the target project name to access the project.
  2. Choose CICD > Deploy.
  3. Click the target application name in the application list. The application deployment records are displayed.
  4. Select the target version and click Roll Back to This Version. In the displayed dialog box, click OK.

    The following uses version 2 as an example.

  5. After the deployment is complete, click the deployment record. The application status bar changes to green and the message Successful is displayed, indicating that the application is successfully deployed.

    The following figure shows that the deployment is successful.

    If the application status bar turns red and displays Failed, the application fails to be deployed. In this case, click View Solution.

    Each time an application is deployed, a version record is added. The record with the largest ID is the latest deployment record. Deployment records of the last 31 days can be retained.