summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2020-12-06 08:01:53 -0500
committerDaniel Micay <danielmicay@gmail.com>2020-12-06 08:01:53 -0500
commitd191dbaea58d5bcad85dfd0593345de8e20de01d (patch)
tree7effb642103755be071bed509792ce11f25eeaf8
parentdd9df36c7906d6694f5e747d523db13862778a78 (diff)
keep A/B deployments in sync
-rwxr-xr-xdeploy_static2
1 files changed, 2 insertions, 0 deletions
diff --git a/deploy_static b/deploy_static
index bdea4f06..8daeb249 100755
--- a/deploy_static
+++ b/deploy_static
@@ -18,6 +18,8 @@ echo active is $active
echo target is $target
echo
+ssh $remote rm -rf $target
+ssh $remote cp -a $active $target
rsync -rpcv --chmod=D755,F644 --delete static_tmp/ $remote:$target
ssh $remote sync -f $target
ssh $remote ln -snf $target /var/www/html