From 8bb6df191fb0056311955d6a2fb3594d8e94339f Mon Sep 17 00:00:00 2001 From: Noah Gao Date: Sat, 30 Jun 2018 13:33:34 +0800 Subject: [PATCH] Add Startup Message --- libfreeiot/app.py | 2 ++ libfreeiot/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libfreeiot/app.py b/libfreeiot/app.py index 8666f60..76dc458 100644 --- a/libfreeiot/app.py +++ b/libfreeiot/app.py @@ -14,6 +14,8 @@ load_dotenv(find_dotenv(usecwd=True), override=True) print('FreeIOT Version: %s' % version.__version__) +print('Web Service: %s:%s' % (os.environ.get('APP_HOST'), os.environ.get('APP_PORT'))) +print('MongoDB Service: %s:%s/%s' % (os.environ.get('MONGO_HOST'), os.environ.get('MONGO_PORT'), os.environ.get('MONGO_DBNAME'))) scope = dict() diff --git a/libfreeiot/version.py b/libfreeiot/version.py index 0872083..6fab5e4 100644 --- a/libfreeiot/version.py +++ b/libfreeiot/version.py @@ -4,4 +4,4 @@ """ script_name = 'libfreeiot' -__version__ = '0.9.15' +__version__ = '0.9.16'