feat(tactical): sovereign military suite with 100% real satellite DEM intervisibility, viewshed 360, offline engines, and entitlements
This commit is contained in:
+11
-13
@@ -1,30 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Auto-detect script directory so it can be run from any folder
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Configuration
|
||||
SERVER_IP="188.68.36.205"
|
||||
SERVER_USER="hamzadoctor"
|
||||
REMOTE_PATH="/home/hamzadoctor/app"
|
||||
KEY_PATH="/Users/hamzaaleghwairyeen/.ssh/doctory-key"
|
||||
|
||||
echo "🚀 Starting sync to server: $SERVER_IP..."
|
||||
echo "🚀 Starting surgical sync to server: $SERVER_IP..."
|
||||
|
||||
# Verify if the key exists
|
||||
if [ ! -f "$KEY_PATH" ]; then
|
||||
echo "⚠️ Warning: Identity file $KEY_PATH not found locally."
|
||||
echo "Attempting sync using default SSH configuration..."
|
||||
echo "ℹ️ Using standard SSH authentication..."
|
||||
KEY_FLAG=""
|
||||
else
|
||||
KEY_FLAG="-i $KEY_PATH"
|
||||
fi
|
||||
|
||||
# Sync files using rsync (surgical sync)
|
||||
# Clean, lightweight sync using .rsyncignore file
|
||||
rsync -avz --progress -e "ssh -o StrictHostKeyChecking=no" $KEY_FLAG \
|
||||
--exclude 'infrastructure/osm-data' \
|
||||
--exclude 'osm-data' \
|
||||
--exclude 'venv' \
|
||||
--exclude '.git' \
|
||||
--exclude 'node_modules' \
|
||||
--exclude '.DS_Store' \
|
||||
--exclude-from="$SCRIPT_DIR/.rsyncignore" \
|
||||
.env \
|
||||
docker-compose.yml \
|
||||
docker-compose.map2.yml \
|
||||
@@ -40,11 +38,11 @@ rsync -avz --progress -e "ssh -o StrictHostKeyChecking=no" $KEY_FLAG \
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "✅ Sync successful!"
|
||||
echo "------------------------------------------------"
|
||||
echo "Now run the following on your SERVER terminal:"
|
||||
echo "To rebuild and restart containers on the server:"
|
||||
echo "cd $REMOTE_PATH"
|
||||
echo "docker compose up -d --build api dashboard web"
|
||||
echo "Dashboard will be live at: http://$SERVER_IP:3204"
|
||||
echo "------------------------------------------------"
|
||||
else
|
||||
echo "❌ Sync failed. Please check your SSH connection or manually update the files."
|
||||
echo "❌ Sync failed. Please verify your SSH access."
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user