Development and deployment speed 8 times! The IDE plug-in to find out?

For developers, improve work efficiency about two main ways, the first way is to speed up their work rate, for a period of time in the same multi-code some code to do more to achieve a number of live productive; and intelligent developers will choose the second way is through plug-ins, so that some repetitive, tedious nature of the work is automated, saving the time to do some substantial business, achieve easy and efficient work pace.

Recently by the conference live, learn a local IDE plug - Cloud Toolkit , it is through the second way to improve the efficiency of developers. It can help developers to more efficiently develop, test, diagnose and deploy applications, also supports the rapid creation of Dubbo engineering and so on, on-line since December last year, more than tens of thousands of developers use this plug-in. (Watch middleware little sister live demo, please click)

This article will inventory all, the latest version of Cloud Toolkit several of which have brought new features for developers. The following article is an outline:

  • Core functions: a key application deployment
  • Support for Windows Server Deployment
  • Support EDAS Kubernetes cluster deployment
  • Support SSH agent (stepping stones)
  • Real-Time Log Viewer application deployment
  • Quickly create an open source project RPC framework Dubbo

More detailed instructions see: help.aliyun.com/document_de...

Core functions: a key application deployment

Simple initial configuration, you can achieve this plugin project to build, package, upload, automated deployment, support for publishing on the cloud (ECS, EDAS and Kubernetes, etc.) and any server (Host). It is not only integrated Alibaba Code Statute (automatic detection of the entire code specification Java Java project, or individual files), also built Arthas diagnostic procedures, Dubbo tool, Terminal Shell terminal and execution tools such as MySQL.

Support for Windows Server Deployment

For developers using Windows systems, plug-in now supports application deployment to Windows server, no need to switch between a series of operation and maintenance tool, simply select the target server on the graphical interface for quick deployment. Steps are as follows:

  1. Importing your project in IntelliJ IDEA in;
  2. Add a server;
    • Select the menu bar at the top Tools > Alibaba Cloud > Alibaba Cloud View > Host
    • In the pop- Host tab, click Add Host
    • In the Add Host settings Host List, Username, Password and other parameters Tag dialog box, finished, click Add
  3. Deployment of applications;
    • Project IntelliJ IDEA in the left side of the screen, right-click your project, select the shortcut menu Alibaba Cloud> Deploy to Host
    • In Deploy to Host dialog box to set the deployment parameters and then click Run

Support EDAS Kubernetes cluster deployment

For EDAS user Ali cloud, Cloud Toolkit achieved with the EDAS Kubernetes cluster integration, developers can easily in the IDE, a key will be applied directly to the corresponding Kubernetes deployed to the cluster. Steps are as follows:

  1. Click on the IntelliJ IDEA Cloud Toolkit icon, select the drop-down list Deploy to EDAS -> EDAS for Kubernetes Application;
  2. Configuration parameters in application deployment Deploy to EDAS dialog box (if you have not already used in EDAS, in the upper right corner of the dialog box, click Create application on EDAS console…, jump to the EDAS Console to create applications);
  3. Click on the Run , IntelliJ IDEA will print area of deployment Console logs can be deployed according to the results of inspection log information;

Support SSH agent (stepping stones)

In deployment scenarios where some developers will encounter difficulties in the above chart: For security reasons between, local development and remote deployment server 192.168.0.1, the network is not connected only by a proxy machine (commonly known as "stepping stones") to open up the network environment. For this situation, the new version of Cloud Toolkit has support for SSH proxy, to address the plight of this part of the developer, follow these steps:

  1. Add the agent;
    • Click on the menu:Tools - Alibaba Cloud - Alibaba Cloud View - Host
    • Click the Add Hostbutton in the pop-pop sequentially enter the IP address of the proxy machine, a user name and password (as shown below: 47.95.120.154 this machine is that we add the machines P ), click on the Addbutton to complete the add
  2. Adding target deployment machine; step and the first step in the consistent, it will not be repeated. We add an IP address of 192.168.20.247 machine T . Note that, at this time do not click the first Addbutton, go directly to the third step.
  3. The machine set P T of the machine as a proxy; below, click Advancedtab, select just adding machine P in SSH Proxy items: 47.95.120.154, click on the Addbutton to complete the addition.

Real-Time Log Viewer application deployment

The latest version adds Cloud Toolkit when deploying applications on a remote server, view real-time logging function, which can facilitate the development after triggering application deployment, immediately view the deployment log on the remote server, the first time to see the start, including running when the error message, and then follow up troubleshooting. Steps are as follows:

  1. Open the application deployment configuration interface, click the "Advanced" tab, as shown below;
  2. In the Command Fill in order to view real-time log, and check the "Automatic open after deploy", after this configuration, application deployment will be in the process, open the Terminal to view the real-time log. View real-time log of command generally:
tail -f /root/act_tomcat/tomcat/logs/catalina.out -n200
复制代码

Quickly create an open source project RPC framework Dubbo

In the latest edition, it provides a quick creation Dubbo engineering functions. Spring arrangement with full Dubbo, transparent access applications, application no intrusion API, the configuration can be simply loaded with Spring Dubbo, Dubbo based Spring extension of Schema loaded. If you do not want to use the Spring configuration, you can how the API call.

Steps are as follows:

  1. Open IntelliJ IDEA, enter the menu: File - New - Project ...
  2. Select JAVA SDK version, click the Next ;
  3. Below, to fill the basic information, including the version Dubbo, Spring Boot version and the like;
  4. OK to create;

As shown below, to complete a full Dubbo project is created, this works exactly the same structure and Apache Dubbo official sample project.

to sum up

There are many features on plug-ins, you can install experience, I believe there is always a feature to hit your pain points, also look forward Cloud Toolkit began to grow, solve more problems as more developers.

I welcome the attention of the public number: Program ape DD, get exclusive organize learning resources and push dry goods daily. If you are interested in my topic content, you can focus on my blog: didispace.com

Guess you like

Origin juejin.im/post/5d4957495188255d465966b4