diff --git a/.forgejo/workflows/production.yaml b/.forgejo/workflows/production.yaml index 007a9338..fd2a3bd1 100644 --- a/.forgejo/workflows/production.yaml +++ b/.forgejo/workflows/production.yaml @@ -165,8 +165,8 @@ jobs: mix phx.server > phoenix.log 2>&1 & echo $! > phoenix.pid echo "Phoenix server started with PID $(cat phoenix.pid)" - sleep 3 - echo "=== Phoenix startup logs ===" + sleep 10 + echo "=== Phoenix startup logs (after 10s) ===" cat phoenix.log || echo "No logs yet" echo "=== Process status ===" ps aux | grep $(cat phoenix.pid) || echo "Process not found" @@ -178,6 +178,14 @@ jobs: run: | timeout 60 bash -c 'until curl -f http://localhost:4000/health; do sleep 2; done' + - name: Show Phoenix logs on failure + if: failure() + run: | + echo "=== Full Phoenix logs ===" + cat phoenix.log || echo "No log file found" + echo "=== Process status ===" + ps aux | grep phoenix || echo "No Phoenix processes found" + - name: Install Playwright dependencies working-directory: e2e run: |