devroom.io/deploy.sh
2015-03-26 13:48:12 +01:00

16 lines
363 B
Bash
Executable File

#!/bin/bash
source=public/
target=apps@spock.ariejan.net:/home/apps/sites/ariejan.net
if [ -d ./public ] ; then
echo "-- Pruning current static files from ./${source}"
rm -rf ./${source}
fi
echo "-- Generating website to ./${source}"
hugo
echo "-- Uploading using rsync to ${target}"
rsync -aqz --delete-after --no-progress ${source} -e ssh ${target}