#!/bin/bash # =============================================================================== # Script Name: run-server.sh # Description: Starts the AI Hub FastAPI application using uvicorn. # The server will be accessible at http://127.0.0.1:8000. # # Usage: ./run-server.sh # =============================================================================== # Set the host and port for the server HOST="0.0.0.0" PORT="8000" APP_MODULE="app.main:app" # Start the uvicorn server with auto-reloading for development # The --host and --port flags bind the server to the specified address. echo "--- Starting AI Hub Server on http://${HOST}:${PORT} ---" exec uvicorn "$APP_MODULE" --host "$HOST" --port "$PORT" --reload