Add deploy shell script
This commit is contained in:
parent
7e2a0196cd
commit
e5707f59bc
15
deploy.sh
Executable file
15
deploy.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/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}
|
Loading…
Reference in New Issue
Block a user