#!/usr/bin/env bash set -euo pipefail # Use an explicit public RPC gateway URL. Never commit an Helius API key. # Recommended: https://t2.shineup.me/solana-rpc (only if the proxy is configured). if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for t2 UI deploy." >&2 echo "Set it to a working public RPC gateway (prefer your /solana-rpc proxy)." >&2 exit 1 fi REMOTE_HOST="player@t2.shineup.me" \ REMOTE_UI_DIR="/home/player/t2/UI" \ EXPECTED_CADDY_UI_ROOT="/home/player/t2/UI" \ EXPECTED_CADDY_SITE="t2.shineup.me" \ DEPLOY_SERVER_LOGIN="server_t2@shine" \ DEPLOY_SERVER_ADDRESS="t2.shineup.me" \ DEPLOY_SOLANA_CLUSTER="devnet" \ DEPLOY_SOLANA_ENDPOINT="$DEPLOY_SOLANA_ENDPOINT" \ TARGET_URL="https://t2.shineup.me" \ bash "$(dirname "$0")/deploy_ui.sh"