You can use Cloud Toolkit to quickly deploy applications to Enterprise Distributed Application Service (EDAS). This method is useful for scenarios such as rapid iterative updates and batched application deployments. After you install and configure Cloud Toolkit in Eclipse, you can set the deployment parameters in the configuration interface to automate the deployment.
Prerequisites
An application has been created in EDAS and deployed for the first time. For more information, see the following documents:
Cloud Toolkit has been installed and configured. For more information, see Install and configure Cloud Toolkit in Eclipse.
Procedure
You can deploy the application from your local machine. The steps are as follows:
Import your local application into Eclipse.
In the Project Explorer pane on the left side of the Eclipse interface, right-click Java_demo (your project name), and then choose .
In the Deploy to EDAS dialog box, configure the deployment parameters, and then click Deploy.
NoteIf you have not created an application in EDAS, click Create application on EDAS console in the upper-right corner of the dialog box to go to the EDAS console and create an application.
The following table describes the deployment parameters.
Parameter
Parameter
Description
Application
Region
The region where the application is located.
Namespace
The namespace where the application is located.
Application
The name of the application.
Group
The application group. The default value is All.
Deploy File
Maven Build
If the project is built using Maven, you can build and deploy it directly.
Upload File
If the project is not built using Maven, or if a local package of the deployment files exists, upload the local deployment files.
Batch Deployment (Advanced)
Version
The deployment version.
Description
The deployment description.
Batch
The number of batches. If your application has multiple groups and you choose to deploy all groups, the deployment is automatically batched by group. You do not need to set the Batch value.
BatchWaitTime
The wait time between batches, in minutes.
Verify the result
After the deployment starts, the Console pane in Eclipse displays the deployment logs. Check the logs to verify the deployment result.
You can also log on to the EDAS console and view the deployment result on the Basic Information page of the deployed application.