Remove postgres url from production config
This commit is contained in:
@@ -19,7 +19,7 @@ class ProductionConfig(Config):
|
|||||||
"""Production configuration."""
|
"""Production configuration."""
|
||||||
DEBUG = False
|
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://"):
|
if uri and uri.startswith("postgres://"):
|
||||||
uri = uri.replace("postgres://", "postgresql://", 1)
|
uri = uri.replace("postgres://", "postgresql://", 1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user