aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py5
1 files changed, 3 insertions, 2 deletions
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
bgstack15