Newer
Older
#!/bin/bash
# Find the local IP address. This line gets the IP address associated with the default route.
LOCAL_IP=$(ip route get 1 | awk '{print $7;exit}')
# Print the local IP address
echo "Local IP Address: $LOCAL_IP"
# Run the Bokeh server command
CMD=("bokeh" "serve" "./" "--port" "5020" "--allow-websocket-origin" "*" "--use-xheaders" "--prefix" "dsi-parser-frontend")
# Execute the command
"${CMD[@]}"