initial
This commit is contained in:
16
update-site.sh
Normal file
16
update-site.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
host=persimmon
|
||||
path=/website/html-hugo
|
||||
folder=persimmon
|
||||
|
||||
cd "$folder" || exit 1
|
||||
|
||||
hugo -D || exit 1
|
||||
|
||||
cp -rf res public/
|
||||
|
||||
rsync='rsync -avhu --progress --delete --partial --links'
|
||||
$rsync public/ $host:$path
|
||||
|
||||
ssh persimmon 'cd /website ; sh fix.sh'
|
||||
Reference in New Issue
Block a user