summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2019-07-05 22:42:03 -0400
committerDaniel Micay <danielmicay@gmail.com>2019-07-05 22:42:03 -0400
commit9b792f976d32399a65bf55c1799cca5a521dfb69 (patch)
tree2d3cf2655482299e2b8ece2a716c3aa8d1cd2c21
parent5f1ba9177af143861c4025c43e9d723c597db9c7 (diff)
switch to rsync for deployment
-rwxr-xr-xdeploy_static3
1 files changed, 1 insertions, 2 deletions
diff --git a/deploy_static b/deploy_static
index 4cadea95..7ffdedfa 100755
--- a/deploy_static
+++ b/deploy_static
@@ -11,7 +11,6 @@ else
target=html_a
fi
-ssh $remote rm -rf $target
-scp -r static $remote:$target
+rsync -rcve ssh --delete static/ $remote:$target
ssh $remote chmod -R a+rX $target
ssh $remote ln -snf $target html