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

Commit 0a3ca2c

Browse files
committed
v0.9.13:New build system
1 parent 1c9ca11 commit 0a3ca2c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

libfreeiot/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
# Load environment
99
import os
1010
from dotenv import load_dotenv, find_dotenv
11+
from libfreeiot.core import create_app
12+
from libfreeiot import version
13+
1114
load_dotenv(find_dotenv(usecwd=True), override=True)
1215

13-
from libfreeiot.core import create_app
16+
print('FreeIOT Version: %s' % version.__version__)
1417

1518
def create_flask_app():
1619
""" Function for create flask application instance """

libfreeiot/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Config:
99
"""
1010
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
1111
MONGO_HOST = os.environ.get('MONGO_HOST') or 'localhost'
12-
MONGO_PORT = int(os.environ.get('MONGO_PORT')) or 27017
12+
MONGO_PORT = int(os.environ.get('MONGO_PORT') or 27017)
1313
MONGO_DBNAME = os.environ.get('MONGO_DBNAME') or 'test'
1414
DEBUG = os.environ.get('DEBUG') or True
1515

0 commit comments

Comments
 (0)