summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTommy Carpenter <tommy@research.att.com>2017-08-11 15:02:32 -0400
committerTommy Carpenter <tommy@research.att.com>2017-08-11 19:12:47 +0000
commit0581c1ed0320acd612dc38757744e8cc1212014b (patch)
tree7a9f4dbb689f56307c4ad1ca03d942c77d30b6b5 /bin
parent816ac43c7c53508ca3ec174f38bd49d1583f1d12 (diff)
Intial commit of CBS to ONAP
Change-Id: I2082544efc59476ac8de0dc39c899f968c3847bd Signed-off-by: Tommy Carpenter <tommy@research.att.com> Issue-Id: DCAEGEN2-47
Diffstat (limited to 'bin')
-rwxr-xr-xbin/run.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/run.py b/bin/run.py
new file mode 100755
index 0000000..7d30a00
--- /dev/null
+++ b/bin/run.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+import connexion
+import sys
+from config_binding_service import get_logger
+
+_logger = get_logger(__name__)
+
+if __name__ == '__main__':
+ try:
+ app = connexion.App(__name__, specification_dir='../config_binding_service/swagger/')
+ app.add_api('swagger.yaml', arguments={'title': 'Config Binding Service'})
+ app.run(host='0.0.0.0', port=10000, debug=False)
+ except Exception as e:
+ _logger.error("Fatal error. Could not start webserver due to: {0}".format(e))