16 lines
242 B
Bash
Executable File
16 lines
242 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Change to the directory containing this script
|
|
cd "$(dirname "$0")"
|
|
|
|
# Activate the virtual environment
|
|
source bin/activate
|
|
|
|
# Start the FastAPI application
|
|
exec uvicorn main:app \
|
|
--host 0.0.0.0 \
|
|
--port 8000
|
|
|