lsproxy-tutorial / start.sh
Rob McKnight
Go back to root again smh
e8d045e
Raw
History Blame Contribute Delete
344 Bytes
#!/bin/bash
cd /app
/lsproxy &
LSPROXY_PID=$!
marimo run tutorial.py --host 0.0.0.0 --port 7860 &
MARIMO_PID=$!
# Handle shutdown gracefully
cleanup() {
echo "Shutting down processes..."
kill $LSPROXY_PID
kill $MARIMO_PID
exit 0
}
trap cleanup SIGTERM SIGINT
# Wait for either process to exit
wait $LSPROXY_PID $MARIMO_PID