Skip to content

Commit

Permalink
remove start server
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Oct 9, 2024
1 parent 3ad43b4 commit ac170d6
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions local/rebac-admin/qa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,6 @@ if [ "$_help" == "true" ]; then
exit 0
fi

## Check if the server is running
if ! curl -s "$_host/health"; then
function onexit {
curl "$_host/shutdown"
wait $_PID1
echo "Server shut down"
}
trap onexit EXIT

## Run server in background
go build -o server ./cmd
bash -c 'sleep 1 && ./server' &
_PID1=$!

echo waiting for the server to be ready
while ! curl -s "$_host/ready"
do
sleep 0.1
done
fi

_opts='-w "\n"'
if [ "$_bail_on_error" == "true" ]; then
_opts="--fail-with-body $_opts"
Expand Down

0 comments on commit ac170d6

Please sign in to comment.