mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
Add note for rsync deploy command (#1415)
Co-authored-by: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> Co-authored-by: Christian Oliff <christianoliff@pm.me>
This commit is contained in:
1 file changed
+1
-1
@@ -100,7 +100,7 @@ USER=my-user
|
|||||||
HOST=my-server.com
|
HOST=my-server.com
|
||||||
DIR=my/directory/to/topologix.fr/ # the directory where your web site files should go
|
DIR=my/directory/to/topologix.fr/ # the directory where your web site files should go
|
||||||
|
|
||||||
hugo && rsync -avz --delete public/ ${USER}@${HOST}:~/${DIR}
|
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
|
exit 0
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user