IDEA plug-in Alibaba Cloud Toolkit configures Windows server for remote deployment of jar packages

foreword

There are many ways to update the jar package of a project on a Windows server or a Linux server. The stupid one is to connect through a remote desktop or ssh remote tool, upload the jar package file, and then start the project. Doing so requires multiple steps:
1. Idea packaging with maven
2. Use remote tools to connect and upload jar packages
3. Use scripts or commands to start the project
However, an IDEA plug-in recently produced by Ali: Alibaba Cloud Toolkit, through which we can achieve automated deployment, comes with terminal tools and file upload functions. A plug-in solves the above 2, 3 steps. Realized packaging, deployment, and running a full set of processes on the idea.

plug-in

Directly search for Alibaba Cloud Toolkit online in the plug-in market of idea, and then install it.
insert image description here

configure server

After installation, restart idea, there is Alibaba CloudExplaorer on the left sidebar, click to open, there is a Host on the top, then right-click-Add Host to
insert image description here
add the host here: ip, port number, user name, password
I don’t know how to open the Windows server For SSH service, you can read this blog I wrote: Windows system server configuration SSH service
insert image description here

configuration items

idea-【Tools】-Alibaba Cloud
insert image description here
insert image description here
select the server,
insert image description here
select the folder of the project in the server and the script to be run,
insert image description here
select the project packaged by idea maven and the additional command line,
insert image description here
insert image description here
and then run it directly
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_28545605/article/details/125677178