Make deploy defaults host-agnostic and support Enter auth submit

This commit is contained in:
Jage9
2026-02-25 00:31:23 -05:00
parent a63e7027cd
commit f41e03a671
9 changed files with 64 additions and 26 deletions

View File

@@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="${1:-/home/bestmidi/chgrid}"
PUBLISH_DIR="${2:-/home/bestmidi/public_html/chgrid}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="${1:-$(cd "$SCRIPT_DIR/../.." && pwd)}"
PUBLISH_DIR="${2:-$REPO_ROOT/deploy/publish/chgrid}"
BASE_PATH="${3:-/chgrid/}"
SERVICE_NAME="${4:-chat-grid.service}"