Files
proxmox/scripts/dev-vm/rsync-projects-to-dev-vm.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

36 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# Rsync projects from local to Dev VM (5700). Run after SSH keys are added for dev1.
# Usage: bash scripts/dev-vm/rsync-projects-to-dev-vm.sh [--dry-run]
# Default target: dev1@192.168.11.60:/srv/projects/
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
source "$PROJECT_ROOT/config/ip-addresses.conf" 2>/dev/null || true
DEV_USER="${DEV_USER:-dev1}"
DEV_HOST="${IP_DEV_VM:-192.168.11.60}"
# Source: parent of project root (e.g. /home/intlc/projects)
SOURCE_DIR="${SOURCE_DIR:-$(dirname "$PROJECT_ROOT")}"
DRY_RUN=""
[[ "${1:-}" == "--dry-run" ]] && DRY_RUN="--dry-run -v"
echo "Rsync: $SOURCE_DIR/ -> $DEV_USER@$DEV_HOST:/srv/projects/"
echo "Excludes: .git, node_modules, .venv, venv, dist, .next, coverage, build, __pycache__, etc."
rsync -avz $DRY_RUN \
--exclude='.git' \
--exclude='node_modules' \
--exclude='.cursor' \
--exclude='.venv' \
--exclude='venv' \
--exclude='__pycache__' \
--exclude='dist' \
--exclude='.next' \
--exclude='coverage' \
--exclude='build' \
--exclude='.turbo' \
--exclude='.pnpm-store' \
--exclude='.nx' \
--exclude='*.pyc' \
"$SOURCE_DIR/" "$DEV_USER@$DEV_HOST:/srv/projects/"