19 lines
435 B
Bash
Executable file
19 lines
435 B
Bash
Executable file
#! /usr/bin/env nix-shell
|
|
#! nix-shell -p python3Packages.pelican -i bash
|
|
|
|
set -xeuf
|
|
|
|
SSH_HOST=euer.krebsco.de
|
|
SSH_PORT=22
|
|
SSH_USER=root
|
|
SSH_TARGET_DIR=/var/www/blog.euer
|
|
|
|
BASEDIR=$(dirname $(readlink -f $0))
|
|
INPUTDIR=$BASEDIR/content
|
|
OUTPUTDIR=$BASEDIR/output
|
|
CONFFILE=$BASEDIR/pelicanconf.py
|
|
PUBLISHCONF=$BASEDIR/publishconf.py
|
|
|
|
pelican $INPUTDIR -o $OUTPUTDIR -s $CONFFILE
|
|
rsync -a $OUTPUTDIR/. $SSH_USER@$SSH_HOST:$SSH_TARGET_DIR
|