sqlLIte / start.sh
gcharanteja
Implement SQLite server and FastAPI integration with updated Dockerfile and startup script
3d4271b
Raw
History Blame Contribute Delete
458 Bytes
#!/bin/bash
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