update deploy.sh for new host

This commit is contained in:
Ariejan de Vroom 2015-12-03 14:48:54 +01:00
parent d9bbeb4f1c
commit 3d66755ee5

View File

@ -1,8 +1,7 @@
#!/bin/bash
source=public/
target=apps@spock.ariejan.net:/home/apps/sites/ariejan.net
target=ariejan@mail.devroom.io:/home/ariejan/www/ariejan.net
git symbolic-ref HEAD | grep -q "refs/heads/master"
if [ $? != 0 ] ; then
@ -16,7 +15,7 @@ if [ -d ./public ] ; then
fi
echo "-- Generating website to ./${source}"
~/go/bin/hugo
hugo
echo "-- Uploading using rsync to ${target}"
rsync -aqz --delete-after --no-progress ${source} -e ssh ${target}