From 9e55adc221c3e867ae902e01d50dd212d531191a Mon Sep 17 00:00:00 2001 From: Adam Wilson Date: Sun, 18 May 2025 15:45:36 -0600 Subject: [PATCH] run server from bash script --- .github/workflows/run_server.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/run_server.sh b/.github/workflows/run_server.sh index 709cd3734..dd7f14186 100755 --- a/.github/workflows/run_server.sh +++ b/.github/workflows/run_server.sh @@ -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=$!