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.
2. Configuration
Open the Alibaba Cloud Toolkit settings,
fill in the server's IP, port, user name, and password, and click [Add] to add
3. Use (one-click deployment)
Select to add [Deploy to host]
and fill in the name
Select HOST, that is, the server configured in the second step
Fill in Target Directory: the folder of the remote server
Fill in After deploy: the batch operation to be performed after uploading the file
Select configuration, and then click run
4. Multi-module project
If it appears during deployment: srcPath does not exist.
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