From 6b3bf41a6057175e27908310c5d5bff6f6693640 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sat, 2 Jan 2021 18:16:46 +0000 Subject: [PATCH] [Website] Add the deploy script to deploy the website --- site/scripts/deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 site/scripts/deploy.sh diff --git a/site/scripts/deploy.sh b/site/scripts/deploy.sh new file mode 100755 index 0000000..41e2b7d --- /dev/null +++ b/site/scripts/deploy.sh @@ -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