SHA256
Очистить Git от секретов и устаревших файлов
This commit is contained in:
Executable → Regular
+9
-1
@@ -1,6 +1,14 @@
|
||||
#!/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" \
|
||||
@@ -8,6 +16,6 @@ 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="https://devnet.helius-rpc.com/?api-key=0614c894-52d8-4ddc-bbbc-0947ce5ec3a4" \
|
||||
DEPLOY_SOLANA_ENDPOINT="$DEPLOY_SOLANA_ENDPOINT" \
|
||||
TARGET_URL="https://t2.shineup.me" \
|
||||
bash "$(dirname "$0")/deploy_ui.sh"
|
||||
|
||||
Reference in New Issue
Block a user