start_webui_dev_mode.sh 533 Bytes
Newer Older
# for development purposes only

export CONTEXTSERVICE_SERVICE_HOST=`kubectl get service/contextservice -n tf-dev -o jsonpath='{.spec.clusterIP}'`
echo Context IP: $CONTEXTSERVICE_SERVICE_HOST
export DEVICESERVICE_SERVICE_HOST=`kubectl get service/deviceservice -n tf-dev -o jsonpath='{.spec.clusterIP}'`
echo Device IP: $DEVICESERVICE_SERVICE_HOST
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python'
export HOST="127.0.0.1"
export FLASK_ENV="development"

# python3 -m webbrowser http://${HOST}:8004

python -m webui.service