download
Method 1 : Download the offline plug-in installation Idea
https://plugins.jetbrains.com/plugin/11386-alibaba-cloud-toolkit
Second way : Open the File-Settings-Plugins search Alibaba Cloud Toolkit
Configuration
Host Server Configuration
script
Ready to start the script deploy.sh
#touch deploy.sh
#vim deploy.sh
source /etc/profile
TARGET_JAR_NAME=$1
pkill -f "$TARGET_JAR_NAME.jar"
sleep 3s
nohup java -jar /root/soft/$TARGET_JAR_NAME.jar > nohup.log 2>&1 &
deploy
The first step : the left side of the Project IntelliJ IDEA interface, right-click Java_demo, select the shortcut menu Alibaba Cloud> Deploy to Host
Step Two : Prepare command: sh /root/soft/deploy.sh d190906-toolkit
View Log (tail -f /root/soft/nohup.log)
to sum up
Use Cloud Toolkit plug-in can be a key project to deploy a server for development and test environments