#!/bin/sh # Build and copy the site to the server from your own machine. # DEPLOY_TARGET=deploy@web.example.com: ./deploy/deploy.sh # The target ends in ":" because the server's rrsync already fixes the folder. set -eu cd "$(dirname "$0")/.." : "${DEPLOY_TARGET:?set DEPLOY_TARGET, for example deploy@web.example.com:}" node build.mjs --strict rsync -rlz --delete --checksum --itemize-changes public/ "$DEPLOY_TARGET"