Fix health check port to 5100 (host port)
This commit is contained in:
parent
d57f3ddd59
commit
e75411dab9
@ -73,7 +73,7 @@ deploy:vps:
|
|||||||
# Health check
|
# Health check
|
||||||
echo "Running health checks..."
|
echo "Running health checks..."
|
||||||
for i in 1 2 3 4 5 6; do
|
for i in 1 2 3 4 5 6; do
|
||||||
if curl -f -s http://localhost:5000/api/catalog/products > /dev/null 2>&1; then
|
if curl -f -s http://localhost:5100/api/catalog/products > /dev/null 2>&1; then
|
||||||
echo "✅ Deployment successful - health check passed"
|
echo "✅ Deployment successful - health check passed"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@ -121,7 +121,7 @@ rollback:vps:
|
|||||||
|
|
||||||
# Health check
|
# Health check
|
||||||
sleep 30
|
sleep 30
|
||||||
if curl -f -s http://localhost:5000/api/catalog/products > /dev/null 2>&1; then
|
if curl -f -s http://localhost:5100/api/catalog/products > /dev/null 2>&1; then
|
||||||
echo "✅ Rollback complete"
|
echo "✅ Rollback complete"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user