SHA256
Сделать Solana RPC необязательным в UI-деплое
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
#!/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
|
||||
# Use the public RPC gateway by default. An explicit DEPLOY_SOLANA_ENDPOINT
|
||||
# still overrides it. Never commit an Helius API key.
|
||||
DEPLOY_SOLANA_ENDPOINT="${DEPLOY_SOLANA_ENDPOINT:-https://t1.shineup.me/solana-rpc}"
|
||||
|
||||
REMOTE_HOST="player@t1.shineup.me" \
|
||||
REMOTE_UI_DIR="/home/player/t1/UI" \
|
||||
|
||||
Reference in New Issue
Block a user