This repository has been archived on 2020-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
codesite/deploy.sh

17 lines
359 B
Bash
Raw Permalink Normal View History

2015-02-06 04:11:38 +00:00
#!/bin/bash
2015-04-04 06:37:12 +00:00
set -eu
2015-02-08 03:19:18 +00:00
2015-04-04 06:37:12 +00:00
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/
2015-02-06 04:11:38 +00:00
# n.b. set chmod -R a+rX remote side?
read -p "Press any key to continue..."