diff options
author | Tommy Carpenter <tommy@research.att.com> | 2019-02-20 07:34:09 -0500 |
---|---|---|
committer | Tommy Carpenter <tommy@research.att.com> | 2019-02-20 13:46:44 -0500 |
commit | 3b60a76f14d035b4e3ca818e07815785ce5a7746 (patch) | |
tree | f5804c7e62f2a36651726f5726d86ebbc4051e61 /app/app/main.py | |
parent | 58c2dfb5bf159488dd04cae572af93c975926d1c (diff) |
Switch to openapi3, clean up testing4.0.0-ONAPdublin
Issue-ID: DCAEGEN2-1215
Change-Id: I29cb31faa497233635de19d211f633f34692d511
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'app/app/main.py')
-rwxr-xr-x | app/app/main.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/app/app/main.py b/app/app/main.py index dd71ccf..c7adaaf 100755 --- a/app/app/main.py +++ b/app/app/main.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # ============LICENSE_START======================================================= -# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,16 +17,12 @@ # ============LICENSE_END========================================================= # # ECOMP is a trademark and service mark of AT&T Intellectual Property. - -import connexion from config_binding_service.logging import create_loggers - -# Entrypoint When in uwsgi -# This create logger call used to be in the main block, but when moving to NGINX+uwsgi, this had to change. See https://hub.docker.com/r/tiangolo/uwsgi-nginx-flask/ -create_loggers() -app = connexion.App(__name__, specification_dir='.') -app.add_api('swagger.yaml', arguments={'title': 'Config Binding Service'}) +from config_binding_service import app if __name__ == "__main__": # Only for debugging while developing app.run(host='0.0.0.0', port=10000, debug=True) +else: + # Entrypoint in UWSGI + create_loggers() |