mirror of
https://github.com/Xevion/runnerspace.git
synced 2026-01-31 12:25:51 -06:00
Fix Heroku using now deprecated Postgres DB URI for SQLAlchemy
This commit is contained in:
@@ -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