En cours...
This commit is contained in:
8
deploy
Executable file
8
deploy
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
USER=pleb
|
||||
HOST=bob
|
||||
DIR=/var/www/shop/ # the directory where your website files should go
|
||||
|
||||
hugo && rsync -avz --rsync-path='sudo rsync' --progress -e ssh --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public folder
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user