9 lines
259 B
Bash
9 lines
259 B
Bash
|
#!/bin/sh
|
||
|
USER=kiri
|
||
|
HOST=192.168.1.178
|
||
|
DIR=/var/www/ # the directory where your website files should go
|
||
|
|
||
|
hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public directory
|
||
|
|
||
|
exit 0
|