mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-05-15 05:30:29 +02:00
API: try uvicorn optimizations
This commit is contained in:
@@ -4,7 +4,12 @@ set -e # Exit on error
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
echo "Starting API server with logging..."
|
||||
nohup uvicorn src.api.http_api:app --host 0.0.0.0 --port 9999 > logs/api.log 2>&1 &
|
||||
|
||||
nohup uvicorn src.api.http_api:app \
|
||||
--host 0.0.0.0 --port 9999 \
|
||||
--workers 4 --loop uvloop \
|
||||
--http httptools --no-use-colors > logs/api.log 2>&1 &
|
||||
|
||||
API_PID=$!
|
||||
echo "API server started with PID: $API_PID"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user