mirror of
https://github.com/Xevion/runnerspace.git
synced 2025-12-07 18:08:13 -06:00
Fix Heroku using now deprecated Postgres DB URI for SQLAlchemy
This commit is contained in:
2
app.py
2
app.py
@@ -25,7 +25,7 @@ def create_app():
|
||||
|
||||
if app.config['ENV'] == 'production':
|
||||
app.config['SECRET_KEY'] = os.getenv('SECRET_KEY')
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL')
|
||||
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL').replace('postgres://', 'postgresql://', 1)
|
||||
|
||||
db.init_app(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user