github-actions[bot] commited on
Commit
5bf93ec
·
1 Parent(s): c7ce552

Deploy ca08e0f from GitHub

Browse files
Files changed (1) hide show
  1. backend/db.py +1 -1
backend/db.py CHANGED
@@ -167,7 +167,7 @@ _ready = False
167
  def _url(driver: str) -> str:
168
  raw = settings.DATABASE_URL
169
  if not raw:
170
- raise RuntimeError("DATABASE_URL is not set. See DEPLOYMENT.md (Postgres with pgvector).")
171
  for prefix in ("postgresql+psycopg2://", "postgresql+asyncpg://", "postgresql://", "postgres://"):
172
  if raw.startswith(prefix):
173
  return f"postgresql+{driver}://" + raw[len(prefix):]
 
167
  def _url(driver: str) -> str:
168
  raw = settings.DATABASE_URL
169
  if not raw:
170
+ raise RuntimeError("DATABASE_URL is not set. See README.md (Neon: database, sign-in and file storage).")
171
  for prefix in ("postgresql+psycopg2://", "postgresql+asyncpg://", "postgresql://", "postgres://"):
172
  if raw.startswith(prefix):
173
  return f"postgresql+{driver}://" + raw[len(prefix):]