Use Cloud Toolkit application deployment standard Spring Boot

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
Here Insert Picture Description

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

Here Insert Picture Description
View Log (tail -f /root/soft/nohup.log)
Here Insert Picture Description

to sum up

Use Cloud Toolkit plug-in can be a key project to deploy a server for development and test environments

Published 11 original articles · won praise 10 · views 78

Guess you like

Origin blog.csdn.net/momo57l/article/details/104300267
Recommended