update db conf in production

This commit is contained in:
jlusiardi 2021-12-21 16:21:00 +00:00
parent bc7e1591bd
commit 8728d3028b

View File

@ -41,8 +41,8 @@ class TestingConfig(Config):
class ProductionConfig(Config):
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:{h}@database/pitstops'.format(
h=os.environ.get('DATABASE_ENV_MYSQL_ROOT_PASSWORD'))
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:{h}@localhost/pitstops'.format(
h=os.environ.get('MYSQL_PASSWORD'))
config = {