binary-back-dburl-fix
Some checks failed
deploy / deploy (push) Failing after 1m53s

This commit is contained in:
Untone 2023-11-22 21:06:45 +03:00
parent 998340baf8
commit 3379376016
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ readme = "README.md"
python = "^3.12" python = "^3.12"
SQLAlchemy = "^2.0.22" SQLAlchemy = "^2.0.22"
httpx = "^0.25.0" httpx = "^0.25.0"
psycopg2 = "^2.9.9" psycopg2-binary = "^2.9.9"
redis = {extras = ["hiredis"], version = "^5.0.1"} redis = {extras = ["hiredis"], version = "^5.0.1"}
uvicorn = "^0.24" uvicorn = "^0.24"
sentry-sdk = "^1.32.0" sentry-sdk = "^1.32.0"

View File

@ -2,8 +2,8 @@ from os import environ
PORT = 8080 PORT = 8080
DB_URL = ( DB_URL = (
environ.get("DATABASE_URL") environ.get("DATABASE_URL", "").replace("postgres://", "postgresql://")
or environ.get("DB_URL") or environ.get("DB_URL", "").replace("postgres://", "postgresql://")
or "postgresql://postgres@localhost:5432/discoursio" or "postgresql://postgres@localhost:5432/discoursio"
) )
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1" REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"