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

21 lines
760 B
Bash
Executable File

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