Skip to content

Commit

Permalink
added recommended changes by code rabbit
Browse files Browse the repository at this point in the history
  • Loading branch information
VanshikaSabharwal committed Nov 11, 2024
1 parent 17a12f7 commit a44ecdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ REACT_APP_BACKEND_WEBSOCKET_URL=ws://localhost:4000/graphql/
# If you want to logs Compiletime and Runtime error , warning and info write YES or if u want to
# keep the console clean leave it blank
ALLOW_LOGS=

REACT_APP_TALAWA_URL=http://localhost:4000
4 changes: 3 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,14 @@ jobs:
sleep 1
timeout=$((timeout-1))
if [ $((timeout % 10)) -eq 0]; then
if [ $((timeout % 10)) -eq 0 ]; then
echo "Still waiting for app to start... ${timeout}s remaining"
fi
done
if [ $timeout -eq 0 ]; then
echo "Timeout waiting for application to start"
echo "Container logs:"
docker logs talawa-admin-app-container
exit 1
fi
echo "Port check passed, verifying health endpoint..."
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ services:
- 4321:4321
user: node
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:4321']
test:
['CMD-SHELL', 'wget --spider -q http://localhost:4321/health || exit 1']
interval: 30s
timeout: 10s
retries: 5
Expand Down

0 comments on commit a44ecdb

Please sign in to comment.