Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is it like to develop and deploy an IDE plug-in Cloud Toolkit that is 8 times faster?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces how the development and deployment of the IDE plug-in Cloud Toolkit is 8 times faster, the content is very detailed, interested friends can refer to, hope to be helpful to you.

For developers, there are probably two main ways to improve work efficiency. the first way is to speed up their work and strive to achieve productivity by writing more code and doing more work at the same time. Smart developers will choose the second way, which is to automate some repetitive and trivial work through plug-ins, so as to save time to do some substantive business and achieve an easy and efficient pace of work.

Recently, through the live broadcast of the press conference, I learned that a local IDE plug-in, Cloud Toolkit, is to improve the productivity of developers in the second way. It can help developers develop, test, diagnose and deploy applications more efficiently, as well as support the rapid creation of Dubbo projects, and more than tens of thousands of developers have been using this plug-in since its launch last December. (to watch the live demonstration of the middleware sister, please click)

We will take a look at what new features the latest versions of Cloud Toolkit have brought to developers.

Core function: one-click deployment of applications

Through simple initialization configuration, this plug-in can automate project construction, packaging, upload and deployment, and support publishing to the cloud (ECS, EDAS, Kubernetes, etc.) and any server (Host). It not only integrates the Alibaba code specification (the code specification that automatically detects the whole Java project or a single Java file), but also has built-in tools such as Arthas program diagnosis, Dubbo tools, Terminal Shell terminals and MySQL executors.

Support for Windows server deployment

For developers using Windows systems, the plug-in now supports the deployment of applications to Windows servers, without switching between a series of operation and maintenance tools, and can be quickly deployed by selecting the target server on the graphical interface. The steps are as follows:

Import your project in IntelliJ IDEA

Add Server

Select Tools > Alibaba Cloud > Alibaba Cloud View > Host in the top menu bar

Click Add Host in the pop-up Host tab

Set parameters such as Host List, Username, Password and Tag in the Add Host dialog box, and click Add when you are finished

Deploy the application

Right-click your project in Project on the left side of the IntelliJ IDEA interface, and select Alibaba Cloud > Deploy to Host from the shortcut menu

Set deployment parameters in the Deploy to Host dialog box and click Run

Support for EDAS Kubernetes cluster deployment

For Aliyun's EDAS users, Cloud Toolkit integrates with the EDAS Kubernetes cluster, and developers can easily deploy the application to the corresponding Kubernetes cluster in IDE with one click. The steps are as follows:

Click the icon for Cloud Toolkit on IntelliJ IDEA and select Deploy to EDAS-> EDAS for Kubernetes Application from the drop-down list

Configure the application deployment parameters in the Deploy to EDAS dialog box (if you have not already created the application on EDAS, click Create application on EDAS console in the upper right corner of the dialog box. , jump to the EDAS console to create an application)

Clicking the Console area of Run,IntelliJ IDEA will print the deployment log, and you can check the deployment result according to the log information.

Support for SSH agent (springboard)

In the deployment scenario, some developers will encounter the dilemma shown above: for security reasons, there is no connection on the network between the local development machine and the remote deployment server 192.168.0.1. You can only get through the network environment through an agent machine (commonly known as "springboard"). In view of this situation, the new version of Cloud Toolkit has supported SSH proxy to solve the plight of these developers. The steps are as follows:

Add an agent

Click the menu: Tools-Alibaba Cloud-Alibaba Cloud View-Host

Click the Add Host button, in the pop-up window, enter the IP address, user name and password of the agent (as shown in the following figure: 47.95.120.154 this machine is the machine we added P), and click the Add button to complete the addition.

Add the target deployment machine; this step is exactly the same as the first step above and will not be repeated. We add a machine T with the IP address 192.168.20.247. Note that do not click the Add button at this time, go straight to the third step.

Set machine P as the proxy for machine T; as shown in the following figure, click the Advanced tab, select the machine Pare47.95.120.154 you just added in the SSH Proxy tab, and click the Add button to complete the addition.

Application deployment real-time log view

The latest version of Cloud Toolkit adds the ability to view real-time logs when deploying an application to a remote server, which makes it convenient for developers to view the deployment log on the remote server immediately after triggering the application deployment, and see the startup as soon as possible, including the error message at runtime, and then follow up and troubleshoot the problem. The steps are as follows:

Open the configuration interface for application deployment and click the "Advanced" tab, as shown in the following figure

Enter the command to view the real-time log in the Command and check "Automatic open after deploy" so that the Terminal for viewing the real-time log will be opened during the deployment of the application. The command to view real-time logs is generally:

Tail-f / root/act_tomcat/tomcat/logs/catalina.out-N200 quickly create an open source RPC framework Dubbo project

In the latest version, it provides the ability to quickly create Dubbo projects. Dubbo adopts full Spring configuration mode and accesses the application transparently without any API intrusion to the application. You only need to load the configuration of Dubbo with Spring, and Dubbo is loaded based on Schema extension of Spring. If you don't want to use Spring configuration, you can call it through API.

The steps are as follows:

Open IntelliJ IDEA and enter the menu: File-New-Project...

Select the JAVA SDK version and click Next

As shown in the figure below, fill in the basic information, including Dubbo version, Spring Boot version, etc.

Confirm to create

As shown in the following figure, the creation of a complete Dubbo project is completed, and the structure of this project is exactly the same as that of the official Apache Dubbo sample project.

There are still many features of the plug-in, you can install and experience, I believe there will always be a special performance hit your pain point, and look forward to the gradual strength of Cloud Toolkit, for more developers to solve more problems.

On the development and deployment of 8 times faster IDE plug-in Cloud Toolkit is how to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report