KPrashanth's picture
Deploy Rachana Data Studio
1641ff7 verified
Raw
History Blame Contribute Delete
376 Bytes
#!/bin/sh
set -eu
uvicorn data_studio.api:app --host 127.0.0.1 --port 8000 &
python_pid=$!
until python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=2)" >/dev/null 2>&1; do
sleep 1
done
node frontend/server.js &
node_pid=$!
trap 'kill "$python_pid" "$node_pid" 2>/dev/null || true' EXIT INT TERM
nginx -g "daemon off;"