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 646 B view raw
1#!/bin/bash 2# Deploy the site to jon-test.ludl.am (test server). 3# 4# Usage: 5# ./deploy-test.sh # rsync _site/ to test server 6# ./deploy-test.sh --build # build first, then deploy 7 8set -euo pipefail 9 10MONO=$(cd "$(dirname "$0")" && pwd) 11SITE="$MONO/_site" 12TARGET="jon-test.ludl.am" 13DEST="/var/www/jon-test.ludl.am/" 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/ ==="