From 2acebfda56925144169ead5e0473f2a14c739aa4 Mon Sep 17 00:00:00 2001 From: Julian Meier Date: Thu, 7 Sep 2017 22:59:12 +0200 Subject: [PATCH] Extended MySQL customization options Added environment variables MYSQL_HOST anf MYSQL_PORT. --- pootle/pootle.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pootle/pootle.conf b/pootle/pootle.conf index 1499269..8b0843a 100644 --- a/pootle/pootle.conf +++ b/pootle/pootle.conf @@ -43,9 +43,9 @@ DATABASES = { # Not used with sqlite3. 'PASSWORD': os.environ.get('MYSQL_PASSWORD'), # Set to empty string for localhost. Not used with sqlite3. - 'HOST': 'mysql', + 'HOST': os.environ.get('MYSQL_HOST', 'mysql'), # Set to empty string for default. Not used with sqlite3. - 'PORT': '3306' + 'PORT': os.environ.get('MYSQL_PORT', '3306') } }