Сделать Solana RPC необязательным в UI-деплое

This commit is contained in:
AidarKC
2026-12-02 00:08:09 +03:00
parent af0beccb4a
commit c5f640b2a9
6 changed files with 14 additions and 29 deletions
+3 -6
View File
@@ -1,12 +1,9 @@
#!/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
# 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://test.shineup.me/solana-rpc}"
REMOTE_HOST="player@t4.shineup.me" \
REMOTE_UI_DIR="/home/player/t4/UI" \
+3 -7
View File
@@ -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" \
+3 -7
View File
@@ -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://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
# 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://t2.shineup.me/solana-rpc}"
REMOTE_HOST="player@t2.shineup.me" \
REMOTE_UI_DIR="/home/player/t2/UI" \
+3 -7
View File
@@ -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://t3.shineup.me/solana-rpc (only if the proxy is configured).
if [[ -z "${DEPLOY_SOLANA_ENDPOINT:-}" ]]; then
echo "ERROR: DEPLOY_SOLANA_ENDPOINT is required for t3 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://t3.shineup.me/solana-rpc}"
REMOTE_HOST="player@t3.shineup.me" \
REMOTE_UI_DIR="/home/player/t3/UI" \