mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Properly set database connection string in cloud.gov
This commit is contained in:
@@ -14,6 +14,10 @@ class CloudfoundryConfig:
|
||||
'region': ''
|
||||
}
|
||||
|
||||
@property
|
||||
def database_url(self):
|
||||
return os.environ.get('DATABASE_URL', '').replace('postgres://', 'postgresql://')
|
||||
|
||||
@property
|
||||
def redis_url(self):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user