Skip to content
Snippets Groups Projects
Commit d6697043 authored by Carlos Natalino Da Silva's avatar Carlos Natalino Da Silva
Browse files

Adding script to launch webui in development mode.

parent 025ee626
No related branches found
No related tags found
1 merge request!54Release 2.0.0
export CONTEXT_SERVICE_ADDRESS=`kubectl get service/contextservice -n tf-dev -o jsonpath='{.spec.clusterIP}'`
echo $CONTEXT_SERVICE_ADDRESS
export DEVICE_SERVICE_ADDRESS=`kubectl get service/deviceservice -n tf-dev -o jsonpath='{.spec.clusterIP}'`
echo $DEVICE_SERVICE_ADDRESS
export HOST="127.0.0.1"
python -m webui.service
import os
import logging
# General settings
......@@ -15,10 +16,8 @@ HOST = '0.0.0.0' # accepts connections coming from any ADDRESS
DEBUG=False
# CONTEXT_SERVICE_ADDRESS = '10.107.242.226'
CONTEXT_SERVICE_ADDRESS = 'context' # TODO: use the correct context ADDRESS
CONTEXT_SERVICE_ADDRESS = os.environ.get('CONTEXT_SERVICE_ADDRESS', 'context')
CONTEXT_SERVICE_PORT = 1010
# DEVICE_SERVICE_ADDRESS = '10.109.49.149'
DEVICE_SERVICE_ADDRESS = 'device' # TODO: use the correct address
DEVICE_SERVICE_ADDRESS = os.environ.get('DEVICE_SERVICE_ADDRESS', 'device')
DEVICE_SERVICE_PORT = 2020
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment