This commit is contained in:
hucs
2024-06-05 17:54:44 +08:00
parent 3b0b1a4d33
commit 883faf813f

View File

@@ -2,7 +2,7 @@
# 发包脚本 # 发包脚本
set -e set -e
echo "发布开始,当前时间是:$current_time" echo "发布开始,当前时间是:$current_time"
#mvn clean install mvn clean install
scp ./play-admin/target/play-admin-1.0.jar root@122.51.20.105:/www/wwwroot/july.hucs.top scp ./play-admin/target/play-admin-1.0.jar root@122.51.20.105:/www/wwwroot/july.hucs.top
ssh root@122.51.20.105 "source /etc/profile;cd /www/wwwroot/july.hucs.top;sh start.sh restart" ssh root@122.51.20.105 "source /etc/profile;cd /www/wwwroot/july.hucs.top;sh start.sh restart"
# 获取当前时间并格式化为指定格式 # 获取当前时间并格式化为指定格式