From a17b4a92c9499a1bd361bda088b1304b0fecd931 Mon Sep 17 00:00:00 2001 From: sp Date: Sun, 18 Apr 2021 23:59:48 +1000 Subject: [PATCH] ensure destination has clean data --- deploy/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 7e765ea..cb1f47d 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -34,7 +34,7 @@ gzip -f /tmp/sfm_loan_rest_api_dist/syd_credit.sql echo "copy it to remote server" scp /tmp/sfm_loan_rest_api_dist/syd_credit.sql.gz root@c5016.biukop.com.au:/var/sfmapi/tmp/dist/ echo "sync files to remote server" -rsync -avh /tmp/sfm_loan_rest_api_dist/ root@c5016.biukop.com.au:/var/sfmapi/tmp/dist/ +rsync -avh --delete /tmp/sfm_loan_rest_api_dist/ root@c5016.biukop.com.au:/var/sfmapi/tmp/dist/ # remote update