8 lines
268 B
Bash
Executable File
8 lines
268 B
Bash
Executable File
#!/bin/sh
|
|
USER=root
|
|
HOST=uniu.net.cn
|
|
DIR=services/hugo_site_obj # 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 folder
|
|
|
|
exit 0 |