From b491f924a2664ae7003847b28b33b5e166756eac Mon Sep 17 00:00:00 2001 From: "YM-RD-AP01\\ymadmin" Date: Thu, 7 Nov 2019 13:08:57 +0800 Subject: [PATCH] 20180082: Job [Deploy_Hi365_Backend_PROD] configuration updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change performed by ³¯¾_¶§ --- jobs/Deploy_Hi365_Backend_PROD/config.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/jobs/Deploy_Hi365_Backend_PROD/config.xml b/jobs/Deploy_Hi365_Backend_PROD/config.xml index 4e480d69..4d0bddff 100644 --- a/jobs/Deploy_Hi365_Backend_PROD/config.xml +++ b/jobs/Deploy_Hi365_Backend_PROD/config.xml @@ -64,14 +64,11 @@ yarn install #build 程式碼 ng build -#移除目錄 -sudo rm -rf /var/www/Hi365 -#把建置好的結果放到apache下 -sudo cp -R ${WORKSPACE}/Hi365 /var/www - -#重新啟動Apache -sudo systemctl restart httpd.service +# 上傳 build artifacts +cd dist +aws s3 sync . s3://h2uclub.myhi365.com --delete --acl public-read + -- 2.26.2