From 8b153119ea912870b70e2206aabebde0e5bf1598 Mon Sep 17 00:00:00 2001 From: mappu Date: Sat, 4 Apr 2015 19:37:12 +1300 Subject: [PATCH] deploy.sh fixes for new file locations --- deploy.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 3b081d1..ba4efe4 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,9 +1,15 @@ #!/bin/bash -chmod -R 644 /cygdrive/c/www/m6/code/wwwroot -chmod -R a+X /cygdrive/c/www/m6/code/wwwroot +set -eu -rsync --delete -avz -e "ssh -i /cygdrive/c/www/ms1_deploy_key -p 2222" --progress /cygdrive/c/www/m6/code/wwwroot www-data@ms1.ivysaur.me:~/code.ivysaur.me/ +LOCALDIR=/cygdrive/c/www/m6/code/sites/code.ivysaur.me/wwwroot + +chmod -R 644 "$LOCALDIR" +chmod -R a+X "$LOCALDIR" + +rsync --delete -avz -e "ssh -i /cygdrive/c/www/ms1_deploy_key -p 2222" --progress \ + "$LOCALDIR" \ + www-data@ms1.ivysaur.me:~/code.ivysaur.me/ # n.b. set chmod -R a+rX remote side?