diff --git a/libfreeiot/config.py b/libfreeiot/config.py index 7e81968..65be667 100644 --- a/libfreeiot/config.py +++ b/libfreeiot/config.py @@ -8,6 +8,8 @@ class Config: Config base class """ SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' + MONGO_HOST = os.environ.get('MONGO_HOST') or 'localhost' + MONGO_PORT = int(os.environ.get('MONGO_PORT')) or 27017 MONGO_DBNAME = os.environ.get('MONGO_DBNAME') or 'test' DEBUG = os.environ.get('DEBUG') or True diff --git a/setup.py b/setup.py index 15f9e51..519bb17 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,12 @@ setup( name = "libfreeiot", - version = "0.9.9", + version = "0.9.10", description = 'A free, open-source IoT Framework', author = 'Noah Gao', author_email = 'noahgaocn@outlook.com', url = 'https://github.com/noahziheng/freeiot', - download_url = 'https://github.com/noahziheng/freeiot/archive/0.9.9.tar.gz', + download_url = 'https://github.com/noahziheng/freeiot/archive/0.9.10.tar.gz', packages = find_packages(), install_requires=[ # 依赖列表 'Flask>=0.12.2',