X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Fresources%2Fscripts%2Finit%2Fo2api_start.sh;h=4581db5b1f72f9eefdd8d12571555eeff5f83e20;hb=refs%2Fchanges%2F56%2F12756%2F1;hp=9b376f4297faadd17f6a87a7155ebad9ac5d5f3c;hpb=4f9eafd85b51688708f6bf24e9334c532a331d8f;p=pti%2Fo2.git diff --git a/charts/resources/scripts/init/o2api_start.sh b/charts/resources/scripts/init/o2api_start.sh index 9b376f4..4581db5 100644 --- a/charts/resources/scripts/init/o2api_start.sh +++ b/charts/resources/scripts/init/o2api_start.sh @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Wind River Systems, Inc. +# Copyright (C) 2021-2024 Wind River Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,23 +14,7 @@ #!/bin/bash -# pull latest code to debug -# cd /root/ -# git clone "https://gerrit.o-ran-sc.org/r/pti/o2" -# cd o2 -# git pull https://gerrit.o-ran-sc.org/r/pti/o2 refs/changes/85/7085/5 -# pip install retry - -# pip install -e /root/o2 -pip install -e /src - -cat <>/etc/hosts -127.0.0.1 api -127.0.0.1 postgres -127.0.0.1 redis -EOF - - -flask run --host=0.0.0.0 --port=80 --cert /configs/server.crt --key /configs/server.key +# The gunicorn start with [::] to listen on both IPv4 and IPv6 +gunicorn -b [::]:80 o2app.entrypoints.flask_application:app --certfile /configs/server.crt --keyfile /configs/server.key sleep infinity