-
Notifications
You must be signed in to change notification settings - Fork 5
/
deploy.sh
27 lines (20 loc) · 880 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
set password "admin"
#scp plugins/* [email protected]:/data01/hlink/flink-1.9.2/lib/
#scp shutdown.sh [email protected]:/data01/hlink/app
source ~/.bash_profile
mvn clean package -Dmaven.test.skip=true
ssh [email protected] "
cd /data01/hlink/app
sh shutdown.sh
exit
"
scp hlink-web-manager/target/hlink-web-manager.jar hlink-web-manager/target/classes/application.yml hlink-web-manager/target/classes/application-test.yml hlink-clients/target/hlink-clients.jar [email protected]:/data01/hlink/app
ssh [email protected] "
source /etc/profile
cd /data01/hlink/app
echo 'hlink-web-manager server start ...'
nohup java -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -XX:MaxNewSize=512m -Dfile.encoding=UTF8 -Duser.timezone=GMT+08 -jar hlink-web-manager.jar > logs/catalina.out 2>&1 &
echo > logs/catalina.out
tail -f logs/catalina.out
"