#!/usr/bin/env bash set -euo pipefail set -x # 1) Start MeshCat server (HTTP on :7000, WS at "/", ZMQ default :6000) meshcat-server --zmq-url tcp://127.0.0.1:6001 & # 2) Start the WS bridge (root "/" on 8765 -> 7000) exec python ws_bridge.py & # 3) Nginx reverse proxy (serves public port 7860) nginx # 4) Start your Gradio app on 8501 exec python app.py