Files
SHiNE-server/deploy/scripts/test_t1_ui.sh
T

22 lines
804 B
Bash

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