diff --git a/jobs/Deploy_Hi365_Questionnaire_SIT/config.xml b/jobs/Deploy_Hi365_Questionnaire_SIT/config.xml index 8876662cde27e3bbeba0b30cc3b42441df935c0c..e72bc64727e2aae359eae08b94ce464105503e49 100644 --- a/jobs/Deploy_Hi365_Questionnaire_SIT/config.xml +++ b/jobs/Deploy_Hi365_Questionnaire_SIT/config.xml @@ -85,9 +85,18 @@ #切換目標 cd target -sudo rename designer_boot-0.0.1-SNAPSHOT.war designer_boot-0.0.1.war + +#停止服務 sudo systemctl stop form.service - + +#移除原本war檔案 +sudo rm /opt/form/designer_boot.war + +#搬移檔案到/opt/form/designer_boot.war +mv designer_boot-0.0.1-SNAPSHOT.war /opt/form/designer_boot.war + +#開啟服務 +sudo systemctl start form.service