From d191dbaea58d5bcad85dfd0593345de8e20de01d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 6 Dec 2020 08:01:53 -0500 Subject: [PATCH] keep A/B deployments in sync --- deploy_static | 2 ++ 1 file changed, 2 insertions(+) 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