From 2607878929c48020fb0c657be418fb751b79d05b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 3 Oct 2016 17:35:34 +0200 Subject: Update deploy script. Use rsync instead of scp, and pass source to jekyll as arg instead of pushing and popping dirs. --- deploy.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 577fe19..c93f144 100755 --- a/deploy.sh +++ b/deploy.sh @@ -44,15 +44,13 @@ then fi echo "** Building site:" -pushd blog -bundle exec jekyll build +bundle exec jekyll build -s blog buildres=$? -popd source "deploy_$target.rc" if [[ $buildres == 0 ]]; then echo "** Deploying to: $deploy_to_path" - scp -r blog/_site/* $deploy_to_path + rsync -avzz blog/_site/* $deploy_to_path fi -- cgit v1.2.3