Skip to content

Commit

Permalink
don't stop the API server after running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Nov 19, 2023
1 parent e1c70be commit c9b3e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/ontoportal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/stop_api
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c9b3e32

Please sign in to comment.