Skip to content

Commit

Permalink
using rsync instead of scp to avoid network cost for esixting files
Browse files Browse the repository at this point in the history
  • Loading branch information
iAmServerless committed Jul 4, 2020
1 parent c554093 commit 994799d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process.json
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 994799d

Please sign in to comment.