Initial GeoIntel V1 foundation
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-16 23:36:32 +02:00
commit 6ea3586a3e
605 changed files with 45284 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env sh
set -eu
echo "Waiting for database connection..."
python - <<'PY'
import time
from sqlalchemy import create_engine, text
from app.core.config import get_settings
settings = get_settings()
last_error = None
for attempt in range(1, 31):
try:
engine = create_engine(settings.database_url, pool_pre_ping=True, future=True)
with engine.connect() as connection:
connection.execute(text("SELECT 1"))
print(f"Database connection ready after attempt {attempt}.")
break
except Exception as exc:
last_error = exc
print(f"Database not ready yet ({attempt}/30): {exc}")
time.sleep(2)
else:
raise SystemExit(f"Database did not become ready: {last_error}")
PY
python -m alembic upgrade head
exec uvicorn app.main:app --host 0.0.0.0 --port 8000