Skip to content

Commit

Permalink
use 'postgresql://' database URL
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed May 18, 2021
1 parent 32b036f commit 4f747ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pulseguardian/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import base64
import os

Expand Down Expand Up @@ -43,6 +44,8 @@
# Database
database_url = os.getenv('DATABASE_URL',
'postgresql://root@localhost/pulseguardian')
# `postgres://` is deprecated in favor of `postgresql://`, but heroku doesn't use postgresql
database_url = re.sub('^postgres:', 'postgresql:', database_url)
pool_recycle_interval = int(os.getenv('POOL_RECYCLE_INTERVAL', 60))

# RabbitMQ
Expand Down

0 comments on commit 4f747ca

Please # to comment.