From 1acc5965e73df6f69141ee0669b5466680018cb8 Mon Sep 17 00:00:00 2001 From: Linus Neumann Date: Wed, 7 Nov 2018 16:00:39 +0100 Subject: Add publish.sh --- fix_images.sh | 2 +- pelicanconf.py | 2 +- publish.sh | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 publish.sh diff --git a/fix_images.sh b/fix_images.sh index 6f39843..8d03335 100755 --- a/fix_images.sh +++ b/fix_images.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -rsync -vaP content/images/* output/images/ +rsync -a content/images/* output/images/ diff --git a/pelicanconf.py b/pelicanconf.py index 0290bb5..461baae 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals AUTHOR = u'Chaos Computer Club e.V.' SITENAME = u'Support-Angebote' -SITEURL = 'http://localhost:8000' +# SITEURL = 'http://localhost:8000' TIMEZONE = 'Europe/Berlin' diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..29ec0e4 --- /dev/null +++ b/publish.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +PY=${PY:-python} +PELICAN=${PELICAN:-pelican} +PELICANOPTS= + +BASEDIR=$(pwd) +INPUTDIR=$BASEDIR/content +OUTPUTDIR=$BASEDIR/output +CONFFILE=$BASEDIR/pelicanconf.py + +set -e + +$PELICAN $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS +./fix_images.sh + +rsync -vaP output/* content.events.ccc.de:/usr/local/www/help.ccc.de/ --delete-after -- cgit v1.2.3