run server from bash script

This commit is contained in:
Adam Wilson
2025-05-18 15:45:36 -06:00
parent a470f43667
commit 9e55adc221
+9
View File
@@ -1,5 +1,14 @@
#!/bin/bash
# Get the directory of the script
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Navigate to the project root (2 levels up from .github/workflows)
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Move to the project root
cd "$PROJECT_ROOT"
# Start Flask server in the background
python -m src.api.controller &
SERVER_PID=$!