Skip to content

Commit

Permalink
Update backend-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pdr21001 authored Apr 28, 2025
1 parent d73f659 commit 738a3ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ jobs:
- name: Start backend server (background)
run: |
uvicorn main:app --host 0.0.0.0 --port 8000 || exit 1 &
sleep 5 # Wait for server to start
uvicorn main:app --host 0.0.0.0 --port 5000 &
for i in {1..10}; do
curl -s http://localhost:5000/docs && break || sleep 2
done
- name: Initialize database
run: |
Expand Down

0 comments on commit 738a3ec

Please sign in to comment.