Files
llmsecops-research/.github/scripts/start_api.sh
2025-05-19 21:41:14 -06:00

12 lines
297 B
Bash
Executable File

#!/bin/bash
set -e # Exit on error
cd $GITHUB_WORKSPACE
echo "Starting API server with logging..."
nohup python -m src.api.server > logs/api.log 2>&1 &
API_PID=$!
echo "API server started with PID: $API_PID"
# Save PID to file so it can be accessed by other scripts
echo $API_PID > api_pid.txt