Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit e81c4f8

Browse files
committed
Fix Flask-pyMongo config BUG
1 parent 9dc8465 commit e81c4f8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

libfreeiot/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ class Config:
88
Config base class
99
"""
1010
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
11+
MONGO_HOST = os.environ.get('MONGO_HOST') or 'localhost'
12+
MONGO_PORT = int(os.environ.get('MONGO_PORT')) or 27017
1113
MONGO_DBNAME = os.environ.get('MONGO_DBNAME') or 'test'
1214
DEBUG = os.environ.get('DEBUG') or True
1315

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
setup(
77
name = "libfreeiot",
8-
version = "0.9.9",
8+
version = "0.9.10",
99
description = 'A free, open-source IoT Framework',
1010
author = 'Noah Gao',
1111
author_email = 'noahgaocn@outlook.com',
1212
url = 'https://github.com/noahziheng/freeiot',
13-
download_url = 'https://github.com/noahziheng/freeiot/archive/0.9.9.tar.gz',
13+
download_url = 'https://github.com/noahziheng/freeiot/archive/0.9.10.tar.gz',
1414
packages = find_packages(),
1515
install_requires=[ # 依赖列表
1616
'Flask>=0.12.2',

0 commit comments

Comments
 (0)