From f9b5fce73bbaa400f3d33d8f43441380e67d3f1f Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 2 Nov 2016 07:22:57 +0100 Subject: Only set those two options when using SQLAlchemy. --- src/bootstrap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/bootstrap.py b/src/bootstrap.py index f4b4591c..92399e74 100644 --- a/src/bootstrap.py +++ b/src/bootstrap.py @@ -38,8 +38,9 @@ else: application.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False application.config['SQLALCHEMY_DATABASE_URI'] \ = conf.SQLALCHEMY_DATABASE_URI - application.config['SQLALCHEMY_POOL_SIZE'] = 15 - application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 + if 'postgres' in conf.SQLALCHEMY_DATABASE_URI: + application.config['SQLALCHEMY_POOL_SIZE'] = 15 + application.config['SQLALCHEMY_MAX_OVERFLOW'] = 0 scheme, domain, _, _, _ = urlsplit(conf.PLATFORM_URL) application.config['SERVER_NAME'] = domain -- cgit