Skip to content

Commit

Permalink
Fix Flask-pyMongo config BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
noahziheng committed Apr 12, 2018
1 parent 9dc8465 commit e81c4f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libfreeiot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]',
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',
Expand Down

0 comments on commit e81c4f8

Please sign in to comment.