Log if the deployer command fails.

This commit is contained in:
Thomas E Lackey 2024-08-14 19:24:32 -05:00
parent 98348389b7
commit 80f7000433

12
run.sh
View File

@ -121,6 +121,12 @@ while true; do
$EXTRA_UNDEPLOY_OPTS \
$UPDATE_OPTS \
--discover
rc=$?
if [ $rc -eq 0 ]; then
echo "############ UNDEPLOY SUCCESS #############"
else
echo "############ UNDEPLOY FAILURE $rc #############"
fi
echo "############ DEPLOY #############"
laconic-so deploy-webapp-from-registry \
@ -139,6 +145,12 @@ while true; do
$EXTRA_DEPLOY_OPTS \
$UPDATE_OPTS \
--discover
rc=$?
if [ $rc -eq 0 ]; then
echo "############ DEPLOY SUCCESS #############"
else
echo "############ DEPLOY FAILURE $rc #############"
fi
# Cleanup any build leftovers
if [[ "${SYSTEM_PRUNE:-false}" == "true" ]]; then