Remove unused dbconfig.php include and add DNS resolution tests
All checks were successful
Deploy Production Email Reports (Unified) / deploy (push) Successful in 57s
All checks were successful
Deploy Production Email Reports (Unified) / deploy (push) Successful in 57s
This commit is contained in:
@@ -27,8 +27,25 @@ php -v || { echo "PHP test failed"; exit 1; }
|
||||
echo ""
|
||||
echo "Environment variables loaded:"
|
||||
echo " DB_HOST_CREW: ${DB_HOST_CREW:-not set}"
|
||||
echo " DB_NAME_CREW: ${DB_NAME_CREW:-not set}"
|
||||
echo " DB_USER_CREW: ${DB_USER_CREW:-not set}"
|
||||
echo " DB_HOST_MERCHBAY: ${DB_HOST_MERCHBAY:-not set}"
|
||||
echo " DB_NAME_MERCHBAY: ${DB_NAME_MERCHBAY:-not set}"
|
||||
echo " DB_USER_MERCHBAY: ${DB_USER_MERCHBAY:-not set}"
|
||||
echo " SMTP_HOST: ${SMTP_HOST:-not set}"
|
||||
echo ""
|
||||
|
||||
# Test DNS resolution for database hosts
|
||||
echo "Testing database host DNS resolution..."
|
||||
if [ -n "${DB_HOST_CREW}" ]; then
|
||||
echo -n " Crew DB (${DB_HOST_CREW}): "
|
||||
getent hosts "${DB_HOST_CREW}" > /dev/null 2>&1 && echo "✓ Resolved" || echo "✗ Cannot resolve"
|
||||
fi
|
||||
if [ -n "${DB_HOST_MERCHBAY}" ]; then
|
||||
echo -n " MerchBay DB (${DB_HOST_MERCHBAY}): "
|
||||
getent hosts "${DB_HOST_MERCHBAY}" > /dev/null 2>&1 && echo "✓ Resolved" || echo "✗ Cannot resolve"
|
||||
fi
|
||||
echo ""
|
||||
|
||||
# Start crond in background
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user