diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2016-10-03 17:35:34 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2016-10-03 17:35:34 +0200 |
commit | 2607878929c48020fb0c657be418fb751b79d05b (patch) | |
tree | 02ba8ae173f3ca50da34102f55f6286ce9d29f60 /deploy.sh | |
parent | f3cf02c0d514315fc9ea685f30c1b3e09524b066 (diff) | |
download | norsk-urskog-main-2607878929c48020fb0c657be418fb751b79d05b.tar.gz norsk-urskog-main-2607878929c48020fb0c657be418fb751b79d05b.tar.bz2 norsk-urskog-main-2607878929c48020fb0c657be418fb751b79d05b.zip |
Update deploy script.
Use rsync instead of scp, and pass source to jekyll as arg instead of
pushing and popping dirs.
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |