update deploy.sh for new host
This commit is contained in:
parent
d9bbeb4f1c
commit
3d66755ee5
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user