summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-10-03 17:35:34 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-10-03 17:35:34 +0200
commit2607878929c48020fb0c657be418fb751b79d05b (patch)
tree02ba8ae173f3ca50da34102f55f6286ce9d29f60
parentf3cf02c0d514315fc9ea685f30c1b3e09524b066 (diff)
downloadnorsk-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.
-rwxr-xr-xdeploy.sh6
1 files 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