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=5c21c181b1483de86f96d3fab314bda0b2f2b492;hp=65f3cbda6d53fe78e602a01c0b17732a05444bc1;hpb=5601b5899b0fd15748ae0474de9f5f6dda72864c;p=pti%2Fo2.git diff --git a/charts/resources/scripts/init/o2api_start.sh b/charts/resources/scripts/init/o2api_start.sh index 65f3cbd..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 - - -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 +# 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