Commit 5c841138 authored by Elias Ojala's avatar Elias Ojala
Browse files

Update build process

parent 3c6e84dc
......@@ -9,10 +9,12 @@ export PATH="$HOME/gems/bin:$PATH"
if [ "$(hostname)" == $EXPECTED_HOSTNAME ]; then
git pull
git push --mirror github
git push --quiet --mirror github
./_mirror.sh
rm -rf _site/
bundle exec jekyll build
rm -rf /var/www/wiki.lelux.fi/*
bundle exec jekyll build --destination=/var/www/wiki.lelux.fi/
cp -rT _site/ /var/www/wiki.lelux.fi/
else
echo "You're running it on \"$(hostname)\". You're supposed to run it on \"$EXPECTED_HOSTNAME\"!"
fi
#!/usr/bin/env bash
git pull
git push --quiet --mirror github
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment