From b02938cafe2721a79be71448b26b87786ae0565e Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 7 Nov 2017 22:30:44 +0100 Subject: [PATCH] Moves MySQL DB to production --- config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.py b/config.py index 9149abf..b9f64e2 100644 --- a/config.py +++ b/config.py @@ -28,7 +28,7 @@ class Config: class DevelopmentConfig(Config): SECURITY_SEND_REGISTER_EMAIL = False DEBUG = True - SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:%s@database/pitstops' % (os.environ.get('DATABASE_ENV_MYSQL_ROOT_PASSWORD')) + SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data.sqlite') class TestingConfig(Config): @@ -37,7 +37,7 @@ class TestingConfig(Config): class ProductionConfig(Config): - SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'data.sqlite') + SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:%s@database/pitstops' % (os.environ.get('DATABASE_ENV_MYSQL_ROOT_PASSWORD')) config = {