added helath checker script
This commit is contained in:
parent
986724033c
commit
da520d09b9
2 changed files with 10 additions and 12692 deletions
12692
package-lock.json
generated
12692
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
scripts/health_check.sh
Normal file
10
scripts/health_check.sh
Normal 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
|
||||||
Loading…
Reference in a new issue