From 2ee1918a2126edaa7247a7c15a8f9e7725ec8c9d Mon Sep 17 00:00:00 2001 From: Doci Mou <22457019+dmou@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:37:03 -0400 Subject: [PATCH] run docker logs --- .github/workflows/ci-test-pr.yml | 3 ++- bin/docker-entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-test-pr.yml b/.github/workflows/ci-test-pr.yml index 3422272f..f7762615 100644 --- a/.github/workflows/ci-test-pr.yml +++ b/.github/workflows/ci-test-pr.yml @@ -89,7 +89,8 @@ jobs: run: | docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rails routes echo 'ran routes' - docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "parallel:test" + docker compose --tail 50 pender + docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake "parallel:test" echo 'ran parallel:test not 3' # docker compose -f docker-test.yml exec -e TEST_RETRY_COUNT=$TEST_RETRY_COUNT -e DEPLOY_ENV=ci -T pender bundle exec rake parallel:spec # echo 'ran parallel:spec' diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh index 42093dca..0e025e64 100755 --- a/bin/docker-entrypoint.sh +++ b/bin/docker-entrypoint.sh @@ -27,7 +27,7 @@ if [ "${APP}" = 'pender' ] ; then port ${SERVER_PORT} EOF - if [ "${DEPLOY_ENV}" = 'local' || "${DEPLOY_ENV}" = 'test' ] ; then + if [ "${DEPLOY_ENV}" = 'local' || "${RAILS_ENV}" = 'test' ] ; then rm -f "${DIRPATH}/pids/server-${DEPLOY_ENV}.pid" bundle exec puma -C "${PUMA}" else # qa, live etc