Alibaba Cloud Toolkit plug-in basic configuration and one-click deployment

old deployment

In the past, regardless of whether it was a test environment or a formal environment, the general process of project deployment was: develop a jar package, then upload it to the server by yourself or to the operation and maintenance personnel, and then use commands to start the project.

Alibaba Cloud Toolkit plugin

1. Install the plugin

In the idea plugin, search for Alibaba Cloud Toolkit, click Install, and restart idea to complete.
insert image description here

2. Configuration

Open the Alibaba Cloud Toolkit settings,
insert image description here
fill in the server's IP, port, user name, and password, and click [Add] to add
insert image description here

3. Use (one-click deployment)

insert image description here
Select to add [Deploy to host]
insert image description here
and fill in the name
insert image description here
Select HOST, that is, the server configured in the second step
insert image description here
Fill in Target Directory: the folder of the remote server
Fill in After deploy: the batch operation to be performed after uploading the file
insert image description here
Select configuration, and then click run
insert image description here

4. Multi-module project

If it appears during deployment: srcPath does not exist.
insert image description here

It may be that the current project is a multi-module project, and only one of the modules needs to be deployed to the remote host, and configured in the before launch window of deploy to host: parent
module: clean install
sub-module: clean package
insert image description here

おすすめ

転載: blog.csdn.net/qq_28545605/article/details/127525633