diff --git a/morss/crawler.py b/morss/crawler.py index 4ea4d6a..c9b5961 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -685,7 +685,7 @@ if 'CACHE' in os.environ: user = os.getenv('MYSQL_USER'), password = os.getenv('MYSQL_PWD'), database = os.getenv('MYSQL_DB'), - host = os.getenv('MYSQL_HOST') + host = os.getenv('MYSQL_HOST', 'localhost') ) elif os.environ['CACHE'] == 'sqlite':