2026-04-12-1

This commit is contained in:
Hamza-Ayed
2026-04-12 22:35:38 +03:00
parent e3799c422c
commit 5ebd7ea3b1
84 changed files with 532 additions and 5136 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Server Restoration Script for Syria Landmarks
# To be run on the server terminal
set -e
APP_DIR="/home/hamzadoctor/app"
EXPORT_FILE="infrastructure/docker/postgis/syria_export.sql"
echo "🔄 Restoring Syria landmarks to production database..."
# 1. Clean existing manual imports to avoid PK conflicts
echo "🧹 Clearing existing manual entries..."
docker exec -i map-db psql -U mapuser -d mapdb -c "DELETE FROM places_syria WHERE source = 'manual_import_2026_04';"
# 2. Inject the SQL dump
echo "📥 Injecting SQL dump..."
docker exec -i map-db psql -U mapuser -d mapdb < "$APP_DIR/$EXPORT_FILE"
# 3. Refresh API cache
echo "🧹 Flushing Redis..."
docker exec -i map-redis redis-cli flushall
echo "✅ Restoration complete! Syria landmarks are live."