From 8bf6107664b3202bebef47b515c952e732010be4 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 26 Jul 2025 03:27:14 +0200 Subject: [PATCH] Add deploy script --- deploy | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 deploy diff --git a/deploy b/deploy new file mode 100755 index 0000000..48cd2d5 --- /dev/null +++ b/deploy @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +RSYNC_OPTS="-avh --delete" + +set -e + +rm -r public/ +cp -r static/ public/ + +ENV=production go run content.go +tailwindcss -i input.css -o public/css/tailwind.css + +rsync $RSYNC_OPTS --dry-run public/ ekzy.is:/var/www/ek + +echo +read -n 1 -p "Continue deploy? [yn] " yn +echo + +[ "$yn" == "y" ] && set -x && rsync $RSYNC_OPTS public/ ekzy.is:/var/www/ek