added helath checker script

This commit is contained in:
2ManyProjects 2025-03-26 15:57:56 -05:00
parent 986724033c
commit da520d09b9
2 changed files with 10 additions and 12692 deletions

12692
package-lock.json generated

File diff suppressed because it is too large Load diff

10
scripts/health_check.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Check if the portfolio service is responsive
if ! curl -s http://localhost:3888 > /dev/null; then
echo "Portfolio site is down, restarting..."
pm2 restart portfolio
else
echo "Portfolio site is running properly"
fi
EOF