Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions scripts/deploy-mainnet.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/usr/bin/env bash
# Sync source + rebuild + recreate the mainnet indexer stack on vps6.
# Sync source + rebuild + recreate the mainnet indexer stack on the mainnet host.
#
# vps6's ~/indexer-deploy is NOT a git checkout (operator preference; keeps
# the prod host out of the GitHub auth path). Source files are pushed via
# scp instead of `git pull`. This script captures the dance so we don't
# have to re-derive the file list on every PR.
# The mainnet host's ~/indexer-deploy is NOT a git checkout (operator
# preference; keeps the prod host out of the GitHub auth path). Source
# files are pushed via scp instead of `git pull`. This script captures
# the dance so we don't have to re-derive the file list on every PR.
#
# Usage:
# ./scripts/deploy-mainnet.sh # full sync + rebuild
# ./scripts/deploy-mainnet.sh --check # smoke /health, skip changes
# ./scripts/deploy-mainnet.sh --skip-build # scp only, no rebuild
#
# Env:
# MAINNET_HOST ssh alias for the mainnet host (default: vps6)
# MAINNET_HOST ssh alias for the mainnet host (required)
#
# Pre-flight:
# - Refuses if local working tree is dirty
Expand All @@ -28,7 +28,7 @@

set -euo pipefail

HOST="${MAINNET_HOST:-vps6}"
HOST="${MAINNET_HOST:?MAINNET_HOST must be set (ssh alias for the mainnet host)}"
SKIP_BUILD=0
CHECK_ONLY=0

Expand Down Expand Up @@ -82,7 +82,7 @@ echo "==> typecheck"
echo "✓ typecheck clean"

# Files to ship. Keep this list explicit + reviewed; avoid blanket `scp -r`
# that would push founder-private artifacts or local node_modules.
# that would push internal artifacts or local node_modules.
FILES=(
apps/api/package.json
apps/api/src/index.ts
Expand Down
Loading