Files
werkjournal/scripts/deploy-prototype.sh
2026-09-08 21:33:27 +02:00

9 lines
469 B
Bash
Executable File

#!/usr/bin/env bash
# First deployment only. Full data-aware upgrades are a later Werkbaum node.
set -euo pipefail
ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
source "$ROOT/scripts/lib-env.sh"
[[ $# == 2 && $1 == --artifact ]] || { echo 'Usage: remote backend deploy-prototype --artifact DIRECTORY' >&2; exit 2; }
target=$(env_value BACKEND_SSH)
exec python3 "$ROOT/scripts/deploy-prototype.py" "${target:-mih04-werkjournal@mih04.hostsharing.net}" "$2"