Skip to content

Commit

Permalink
v0.9.13:New build system
Browse files Browse the repository at this point in the history
  • Loading branch information
noahziheng committed Jun 17, 2018
1 parent 1c9ca11 commit 0a3ca2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion libfreeiot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
# Load environment
import os
from dotenv import load_dotenv, find_dotenv
from libfreeiot.core import create_app
from libfreeiot import version

load_dotenv(find_dotenv(usecwd=True), override=True)

from libfreeiot.core import create_app
print('FreeIOT Version: %s' % version.__version__)

def create_flask_app():
""" Function for create flask application instance """
Expand Down
2 changes: 1 addition & 1 deletion libfreeiot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Config:
"""
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_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

0 comments on commit 0a3ca2c

Please sign in to comment.