gcharanteja
Implement SQLite server and FastAPI integration with updated Dockerfile and startup script
3d4271b Download start.sh from maxxcarl/sqlLIte: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/maxxcarl/sqlLIte/resolve/main/start.sh
- Command line
-
hf download hf://spaces/maxxcarl/sqlLIte/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/maxxcarl/sqlLIte/resolve/main/start.sh
458 Bytes
| echo "=== Starting SQLite and FastAPI ===" | |
| # Define the persistent directory | |
| PERSIST_DIR="/data" | |
| mkdir -p $PERSIST_DIR | |
| # Start SQLite server in background | |
| echo "π Starting SQLite server on port 8000..." | |
| python3 sqlite_server.py & | |
| SQLITE_PID=$! | |
| # Wait for SQLite server to start | |
| sleep 2 | |
| # Start FastAPI app | |
| echo "π Starting FastAPI app on port 7860..." | |
| python3 app.py & | |
| APP_PID=$! | |
| # Keep both processes alive | |
| wait $SQLITE_PID $APP_PID | |