Remove postgres url from production config

This commit is contained in:
Peter Stockings
2024-12-26 01:37:38 +11:00
parent ef2529d56e
commit 094365e7ad

View File

@@ -19,7 +19,7 @@ class ProductionConfig(Config):
"""Production configuration."""
DEBUG = False
uri = os.environ.get('DATABASE_URL', 'postgres://postgres:59fff56880e1bbb42e753d2a82ac21b6@peterstockings.com:15389/bloodpressure_db')
uri = os.environ.get('DATABASE_URL')
if uri and uri.startswith("postgres://"):
uri = uri.replace("postgres://", "postgresql://", 1)