8 lines
259 B
Bash
Executable file
8 lines
259 B
Bash
Executable file
#!/bin/sh
|
|
USER=forgejo
|
|
HOST=test1.melm.xyz
|
|
DIR=/srv/ # 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
|