* исправила переменную DATABASE_URL_FILE
This commit is contained in:
@@ -6,9 +6,9 @@ import psycopg
|
|||||||
|
|
||||||
|
|
||||||
def _dsn() -> str:
|
def _dsn() -> str:
|
||||||
dsn = os.environ.get("DATABASE_URL")
|
dsn = os.environ.get("DATABASE_URL_FILE")
|
||||||
if not dsn:
|
if not dsn:
|
||||||
raise RuntimeError("DATABASE_URL is not set")
|
raise RuntimeError("DATABASE_URL_FILE is not set")
|
||||||
return dsn
|
return dsn
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user