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.
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
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
configuration items
idea-【Tools】-Alibaba Cloud
select the server,
select the folder of the project in the server and the script to be run,
select the project packaged by idea maven and the additional command line,
and then run it directly