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
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- Select the target application in the application list and click .
- 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.
- 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
- Go to the CodeArts homepage and click the target project name to access the project.
- Choose CICD > Deploy.
- Click the target application name in the application list. The application deployment records are displayed.
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.