My aggregated monorepo of OCaml code, automaintained
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 28 lines 651 B view raw
1#!/bin/bash 2# Deploy the site to jon.recoil.org (live/production server). 3# 4# Usage: 5# ./deploy-live.sh # rsync _site/ to live server 6# ./deploy-live.sh --build # build first, then deploy 7 8set -euo pipefail 9 10MONO=$(cd "$(dirname "$0")" && pwd) 11SITE="$MONO/_site" 12TARGET="jon.recoil.org" 13DEST="/var/www/jon.recoil.org/" 14 15for arg in "$@"; do 16 case "$arg" in 17 --build) "$MONO/build-site.sh" ;; 18 esac 19done 20 21if [ ! -d "$SITE" ]; then 22 echo "Error: $SITE does not exist. Run ./build-site.sh first." 23 exit 1 24fi 25 26echo "=== Deploying to $TARGET ===" 27rsync -avz --delete "$SITE/" "$TARGET:$DEST" 28echo "=== Deployed to https://$TARGET/ ==="