Spaces:
Sleeping
Sleeping
File size: 342 Bytes
1706a3b c6c2ad4 67e0e6d 1706a3b c6c2ad4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#!/bin/bash
# Start the application on port 7861 first
python -m cadviewer &
APP_PID=$!
# Wait for the app to be ready
echo "Waiting for NiceGUI to start..."
while ! curl -s http://127.0.0.1:7861 > /dev/null; do
sleep 1
done
echo "NiceGUI is ready"
# Start Nginx (which listens on 7860)
nginx
# Wait for the app to exit
wait $APP_PID |