diff options
-rwxr-xr-x | fix_images.sh | 2 | ||||
-rw-r--r-- | pelicanconf.py | 2 | ||||
-rwxr-xr-x | publish.sh | 16 |
3 files changed, 18 insertions, 2 deletions
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 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | rsync -vaP content/images/* output/images/ | 2 | 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 | |||
4 | 4 | ||
5 | AUTHOR = u'Chaos Computer Club e.V.' | 5 | AUTHOR = u'Chaos Computer Club e.V.' |
6 | SITENAME = u'Support-Angebote' | 6 | SITENAME = u'Support-Angebote' |
7 | SITEURL = 'http://localhost:8000' | 7 | # SITEURL = 'http://localhost:8000' |
8 | 8 | ||
9 | TIMEZONE = 'Europe/Berlin' | 9 | TIMEZONE = 'Europe/Berlin' |
10 | 10 | ||
diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..29ec0e4 --- /dev/null +++ b/publish.sh | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | PY=${PY:-python} | ||
3 | PELICAN=${PELICAN:-pelican} | ||
4 | PELICANOPTS= | ||
5 | |||
6 | BASEDIR=$(pwd) | ||
7 | INPUTDIR=$BASEDIR/content | ||
8 | OUTPUTDIR=$BASEDIR/output | ||
9 | CONFFILE=$BASEDIR/pelicanconf.py | ||
10 | |||
11 | set -e | ||
12 | |||
13 | $PELICAN $INPUTDIR -o $OUTPUTDIR -s $CONFFILE $PELICANOPTS | ||
14 | ./fix_images.sh | ||
15 | |||
16 | rsync -vaP output/* content.events.ccc.de:/usr/local/www/help.ccc.de/ --delete-after | ||