Spaces:
Running
Running
Download server/start_sim.sh from brand0nwalls/NetOps: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/brand0nwalls/NetOps/resolve/main/server/start_sim.sh
- Command line
-
hf download hf://spaces/brand0nwalls/NetOps/server/start_sim.sh
-
curl -L -o start_sim.sh https://huggingface.co/spaces/brand0nwalls/NetOps/resolve/main/server/start_sim.sh
399 Bytes
| set -e | |
| APP_PORT=${PORT:-7860} | |
| echo "=== NetOps Sim Environment: Starting on port ${APP_PORT} ===" | |
| if [ "$APP_PORT" != "8000" ]; then | |
| socat TCP-LISTEN:8000,fork,reuseaddr TCP:localhost:${APP_PORT} & | |
| echo "=== Port forwarder: 8000 -> ${APP_PORT} ===" | |
| fi | |
| exec python3 -m uvicorn server.app:app --host 0.0.0.0 --port ${APP_PORT} \ | |
| --ws-ping-interval 300 --ws-ping-timeout 300 | |