default-connections
All checks were successful
Deploy to v2 / deploy (push) Successful in 1m47s

This commit is contained in:
Untone 2024-02-17 23:17:12 +03:00
parent 43d6c36af9
commit 201b3c2f33

View File

@ -3,12 +3,14 @@ from os import environ
PORT = 8000 PORT = 8000
DB_URL = ( DB_URL = (
environ.get('DATABASE_URL', environ.get('DB_URL', '')).replace('postgres://', 'postgresql://') environ.get("DATABASE_URL", environ.get("DB_URL", "")).replace(
or 'postgresql://postgres@localhost:5432/discoursio' "postgres://", "postgresql://"
)
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"
API_BASE = environ.get('API_BASE') or 'https://core.discours.io' API_BASE = environ.get("API_BASE") or "http://localgost:8001"
AUTH_URL = environ.get('AUTH_URL') or 'https://auth.discours.io' AUTH_URL = environ.get("AUTH_URL") or "http://localhost:8080/graphql"
MODE = environ.get('MODE') or 'production' MODE = environ.get("MODE") or "production"
SENTRY_DSN = environ.get('SENTRY_DSN') SENTRY_DSN = environ.get("SENTRY_DSN")
DEV_SERVER_PID_FILE_NAME = 'dev-server.pid' DEV_SERVER_PID_FILE_NAME = "dev-server.pid"