Skip to content

Commit

Permalink
Merge pull request #46 from amal-k-soman-aot/formsflow-merge
Browse files Browse the repository at this point in the history
updated code for print env
  • Loading branch information
amal-k-soman-aot authored Nov 7, 2024
2 parents 3972d8f + 6f4e1a8 commit a84da45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redash/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
DB_PORT = os.getenv("REDASH_DATABASE_PORT", "6432")
DB_NAME = os.getenv("REDASH_DATABASE_NAME", "postgres")
database_default_url = os.environ.get("DATABASE_URL", f"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}")
print(database_default_url)
SQLALCHEMY_DATABASE_URI = os.getenv("REDASH_DATABASE_URL", database_default_url)

print(SQLALCHEMY_DATABASE_URI)
SQLALCHEMY_MAX_OVERFLOW = int_or_none(os.environ.get("SQLALCHEMY_MAX_OVERFLOW"))
SQLALCHEMY_POOL_SIZE = int_or_none(os.environ.get("SQLALCHEMY_POOL_SIZE"))
SQLALCHEMY_DISABLE_POOL = parse_boolean(os.environ.get("SQLALCHEMY_DISABLE_POOL", "false"))
Expand Down

0 comments on commit a84da45

Please sign in to comment.