From 82595e09d6bd9214bf2e32f470c5b700eb059d77 Mon Sep 17 00:00:00 2001 From: Viachaslau Tyshkavets Date: Fri, 20 Feb 2026 18:32:31 +0400 Subject: [PATCH] chore(ci): stabilize rails server process --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e2a120..a54691c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,7 +93,8 @@ jobs: - name: Start server run: | - bundle exec rails server -b 0.0.0.0 -p 3000 >rails.log 2>&1 & + mkdir -p tmp + bundle exec rails server -e development -b 0.0.0.0 -p 3000 > tmp/rails-server.log 2>&1 & - name: Wait for server readiness run: | @@ -110,11 +111,11 @@ jobs: done if [ "$READY" -ne 1 ]; then echo "Server failed to start" - tail -n 200 rails.log || true + tail -n 200 tmp/rails-server.log || true exit 1 fi - echo "Server is ready; last 200 lines of rails.log:" - tail -n 200 rails.log || true + echo "Server is ready; last 200 lines of tmp/rails-server.log:" + tail -n 200 tmp/rails-server.log || true - name: Check homepage run: |