From 994799dd32153cba208fecc6bf8303d9a30e5030 Mon Sep 17 00:00:00 2001 From: Ashutosh Sharma Date: Sun, 5 Jul 2020 03:15:44 +0530 Subject: [PATCH] using rsync instead of scp to avoid network cost for esixting files --- process.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.json b/process.json index 12669d9..7eb0f15 100644 --- a/process.json +++ b/process.json @@ -10,7 +10,7 @@ "ref" : "origin/master", "repo" : "git@github.com:ashuanindian/aahan.git", "path" : "/home/ec2-user", - "pre-deploy-local" : "scp -r public ec2-user@13.235.113.38:'/home/ec2-user/current'", + "pre-deploy-local" : "rsync -au -P public/ ec2-user@13.235.113.38:'/home/ec2-user/current/public'", "post-deploy" : "cd /home/ec2-user/source && yarn install && yarn build && pm2 startOrRestart process.json --env production" } }