Files
davideisinger.com/bin/deploy-local
David Eisinger 7a50a7541a
Some checks failed
Deploy / deploy (push) Failing after 4m25s
Gitea deploy
2026-04-08 22:37:59 -04:00

16 lines
279 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
target_dir="${1:-/var/www/davideisinger.com}"
pushd "${repo_root}" >/dev/null
mkdir -p "${target_dir}"
rsync \
-v \
-r \
--delete \
public/ \
"${target_dir}/"
popd >/dev/null