From c9b3e320e56172f95914779933ec31aaf345c0cb Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sun, 19 Nov 2023 23:39:29 +0100 Subject: [PATCH] don't stop the API server after running the tests --- bin/ontoportal | 4 ++-- bin/stop_api | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ontoportal b/bin/ontoportal index fde87be37..c8835d5df 100755 --- a/bin/ontoportal +++ b/bin/ontoportal @@ -126,8 +126,8 @@ test() { echo "Run: API_URL=http://localhost:9393 bundle exec rails test -v $*" docker compose run --rm -it test bash -c "(bundle check || bundle install) && RAILS_ENV=test bin/rails db:prepare && API_URL=http://localhost:9393 bundle exec rails test -v $*" - echo "Stopping API..." - bin/stop_api + # echo "Stopping API..." + # bin/stop_api } # Function to handle the "run" option diff --git a/bin/stop_api b/bin/stop_api index 930fc24dd..7dc163083 100755 --- a/bin/stop_api +++ b/bin/stop_api @@ -8,6 +8,6 @@ if [ -d "tmp/ontoportal_docker" ]; then docker stop "$container_names" fi - cd "tmp/ontoportal_docker" && docker compose stop + cd "tmp/ontoportal_docker" && docker compose down fi