crawler: default value for MYSQL_HOST (localhost)
parent
bbada0436a
commit
d9f46b23a6
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue