Initial commit: Fat Kiss site — Hugo + Decap CMS
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
REMOTE="benjoe@172.233.145.18"
|
||||
DEST="/var/www/getfatkiss.com/public_html/"
|
||||
SRC_DIR="/home/benjoe/getfatkiss"
|
||||
|
||||
echo "[deploy] Building..."
|
||||
bash scripts/build.sh
|
||||
|
||||
echo "[deploy] Syncing to Hub..."
|
||||
rsync -az --delete public/ "${REMOTE}:${SRC_DIR}/public/"
|
||||
|
||||
echo "[deploy] Deploying to live webroot..."
|
||||
ssh "${REMOTE}" "sudo rsync -az --delete ${SRC_DIR}/public/ ${DEST} && sudo chown -R www-data:www-data ${DEST}"
|
||||
|
||||
echo "[deploy] Done → https://getfatkiss.com/"
|
||||
Reference in New Issue
Block a user