[Website] Add the deploy script to deploy the website

This commit is contained in:
Sameer Rahmani 2021-01-02 18:16:46 +00:00
parent 0f651c4a49
commit 6b3bf41a60
1 changed files with 9 additions and 0 deletions

9
site/scripts/deploy.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
USER=www
HOST=core.lxsameer.com
DIR=/home/www/public/serene/
SITEDIR=$(cd "$(dirname "$0")/.." >/dev/null 2>&1 ; pwd -P)
hugo && rsync -avz --delete ${SITEDIR}/public/ ${USER}@${HOST}:${DIR}
exit 0