nginx / run.sh
clone3's picture
Update run.sh
3b565a5 verified
raw
history blame
300 Bytes
#!/bin/bash
service nginx start
python -m http.server --directory ./static --bind 0.0.0.0 8000 & echo $! > http_server.pid
python -m http.server --directory ./web --bind 0.0.0.0 7777 & echo $! > http_server.pid
uvicorn "app:app" --port 7860 --host 0.0.0.0
pkill -F http_server.pid
rm http_server.pid