Developers say: how to participate in the definition of Cloud Toolkit

_

Since when product manager silver guy and his little buddy development release Cloud Toolkit (an IDE plug-ins) in December last year, has helped tens of thousands of developers to improve the efficiency of cloud deployment, during which they also released the Contributor Ranking List, and developers together define, create easy to use IDE plug-ins. This time, the developer Hang Zhang shared his story and the Cloud Toolkit. Click immediately participate contribution!

How I fell in love with this tool

In early March, I was browsing when Ali cloud, happened to see the recommended Alibaba Cloud Toolkit, we introduce random point to open the video, after reading immediately to the interest. Because I usually work with a packed maven, to copy out the package with xftp upload, and then use xshell connect to the server, operating meal fierce as a tiger, a look at the efficiency ooo, ooo. Sometimes a smaller project test environment day to lay back and forth several packages, very cumbersome, although the company previously used jenkins, but its configuration is too complex, plus new projects the company is small, so I can not use it, so they climb no packaging, low efficiency of the deployment of the pit. Until I met Cloud Tooklit, watching the video introduction, then in my heart cry: My God, and this operation! ? Simply look at the configuration server, packaged and released at one go, to fill the gap in general, Bide Fu also silky (manual dog's head).

I most frequently used functions

Since I currently use Cloud Toolkit is 2019.3.3 version, it only describes the function of this version I use most often.

  • File / folder upload

We used to upload files to the server with xftp or xshell, now we just need to click upload, and then choose to upload the file / folder, and then select the server you want to upload, input files / folders stored path location in Finally, you can click upload. The whole operation was completed in IDEA, do not have to switch out the interface, single-minded focus on one interface, really flattered ~

(Ps: If you want to execute a shell script after upload, you can point to open after upload, you can specify a script, very convenient.)

  • One-click deployment of ECS / Host

以前我们部署需要 maven 打包,然后把包通过 xftp 或者 xshell 上传到服务器,然后再运行启动脚本。

部署到 ECS 和 Host 的方法基本相同,不同之处是 ECS 会把包上传到 OSS,然后下载到服务器;而 Host 则是直接上传。所以如果看到部署 ESC 时显示"连接超时“,多半是你的云助手出了毛病,此时老铁不方,问题不大,只要去阿里云提个工单就好,会有工程师即时给你解决。

现在我们只需要在 Tools 中找到 Alibaba Cloud,选择 Deploy to ECS,然后做一下简单的配置即可。我们可以选择 2 种方式部署,一种 maven 构建一个中文件上传,个人推荐 maven 构建,因为一旦修改代码后,想再部署只要点一下启动就行了,一气呵成,perfect!!!

下面说说具体实施步骤:

  1. 首先我们要在 Name 那里起个名字,比方说 demo test deploy;
  2. 切换到我们服务器所在的大区,选中我们想要部署的服务器;
  3. 在 Target Directory 写上文件部署目录,比如 /opt;
  4. 在 Command 指定运行脚本路径,比如 sh /opt/start.sh;
  5. 最后只需稍等 1 分钟,喝口咖啡,调戏一下程序员鼓励师,控制台便会提示你部署成功。

我觉得最好用的功能

讲到 Cloud Toolkit 最好用的功能,那必须是一键部署 ECS/Host啦,这个简直是最最最最最最常用,解决了开发部署是最痛痛痛痛痛痛点,原始的打包、上传、发布,一套军体拳打下来虽然虎虎生风,但是总是来回切换软件,切换屏幕,令人非常烦躁,然后就会经常出现下面的对话:

后来打包部署次数多了,就不得不使用 jenkins 了,但是配置起来太繁琐,操作过程太复杂,而且还要来回切换 IDEA 界面,让我不能专注于一个界面,打乱我的思绪,体验非常不好。得亏救世主 Cloud Toolkit 问世,让我深深拜倒在她的石榴裙下。不得不说,它的配置非常简单,一键就能将修改好的代码打包部署,随后就坐等页面刷新看效果,操作步骤少而简,让人爱不释手。

我认为最烂的功能

目前来说,我觉得 Cloud Toolkit 的整体使用体验良好,没有比较烂的功能,但是其中体验稍微不足的地方,就是在一键部署的配置里一个选择 shell 脚本执行的功能。如果第一次部署配置到 Command,肯定要点击右侧的 Select Command 选择一个执行脚本,但是这里提供的添加是基于服务器上已经存在了脚本,如果能做到真正的编辑、新增,然后再选择,那就更完美了。

如果能做一个帮助程序员给变量或方法起名的插件更好啦,市面上有 codeif,但是我觉得不好用,而且没有 IDEA 插件。简单的需求我都想好啦,首先 IDEA 内热键唤起搜索框,键入中文,下拉展现出最合适匹配的英文按照适用百分比倒叙排列,然后鼠标光标移动到上面可以看到使用该命名的相关开源项目,然后点击开源项目能看到代码缩略图。

如果这个工具能做出来,那么假以时日,必定像 2000 年前秦始皇的书同文,车同轨一样具有划时代的意义,不仅解决了起名难题,也解决了换公司接受不同项目能快速理解业务的难题。

我眼中的同类产品对比

传统的打包、部署主要采用 xftp 和 xshell 来配合完成,后来我自己使用 jenkins 来自动构建发布,再结合 Cloud Toolkit 的部署,现在将这三者进行比较,总结如下:

同类产品 使用体验总结
传统 xftp 和 xshell 打配合 需要来回切换软件,当一天需要来回打好几个包时候,工作效率和激情会极其低下。
使用 jenkins 刚开始搭建配置复杂繁琐,需要安装许多东西,而且还是得来回切换软件。
使用 Cloud Toolkit Plug-in installation, configuration simple, convenient operation, at one go, most do not cut out the most critical IDEA interface, single-minded focus on core job content, work efficiency is improved a lot.

I want to say to Cloud Toolkit team

From the beginning to the end in contact to know Cloud Toolkit to use it, the whole process encountered many problems, but also benefited from the Cloud Toolkit team, they always stand by our side, difficulties and doubts have been timely help and answers, For example:

  1. When a version 2019.3.1 started, but encountered invalid click file upload problem, contact the team after nailing the group, immediately gave me a personal remote verification, and then helped to resolve.
  2. Connection timeout encountered a problem when deploying to ECS, later found to be a problem cloud assistant, by providing work orders, and finally solved.
  3. At deployment time, we found that file upload occurs more than 100 percent, 780 percent of the console print upload funny, the last team with the fastest speed in addressing this problem.

Overall, I am very grateful to Cloud Toolkit team, they can find in the industry pain points and develop products to solve everyone out of the difficulties, problems can be solved in time, is the gospel of our part-time programmers ah! I hope Cloud Toolkit team redouble their efforts and make better work.


Original author:
Zhang Hang, Nanjing Thinking Machine Engineer Senior Java Developer, mainly near the body of skills: Springboot, Spring Cloud family bucket, MySQL, Redis, MongoDB and RabbitMQ and so on. Currently leading small thinking machine private lending risk control and iterative development work public number.

How to participate in the definition of Cloud Toolkit

1, two-dimensional code scanning nails, nail into the group:
_

2, micro-channel two-dimensional code scanning, operation and maintenance personnel will pull you into the group:
_

3, direct to get started:
_

Guess you like

Origin yq.aliyun.com/articles/704220
Recommended